Gina Next Generation
 All Classes Namespaces Files Functions Variables
City.php
Go to the documentation of this file.
00001 <?php
00002 
00003 namespace Etrali\GinangBundle\Entity;
00004 use Symfony\Component\Validator\Constraints as Assert;
00005 use Doctrine\ORM\Mapping as ORM;
00006 
00007 /**
00008  * City
00009  *
00010  * @ORM\Table(name="city")
00011  * @ORM\Entity
00012  */
00013 class City
00014 {
00015     /**
00016      * @var integer
00017      *
00018      * @ORM\Column(name="id_city", type="integer", nullable=false)
00019      * @ORM\Id
00020      * @ORM\GeneratedValue(strategy="IDENTITY")
00021      */
00022     private $idCity;
00023 
00024     /**
00025      * @var string
00026      *
00027      * @ORM\Column(name="cd_city", type="string", length=15, nullable=false)
00028      * @Assert\NotBlank()
00029      * @Assert\MaxLength(15)
00030      */
00031     private $cdCity;
00032 
00033     /**
00034      * @var string
00035      *
00036      * @ORM\Column(name="lb_city", type="string", length=100, nullable=false)
00037      * @Assert\NotBlank()
00038      * @Assert\MaxLength(50)
00039      */
00040     private $lbCity;
00041 
00042     /**
00043      * @var boolean
00044      *
00045      * @ORM\Column(name="bl_deactivated", type="boolean", nullable=true)
00046      * 
00047      */
00048     private $blDeactivated=true;
00049 
00050     /**
00051      * @var \DateTime
00052      *
00053      * @ORM\Column(name="dt_create", type="datetime", nullable=true)
00054      * @Assert\DateTime()
00055      */
00056     private $dtCreate;
00057 
00058     /**
00059      * @var \DateTime
00060      *
00061      * @ORM\Column(name="dt_update", type="datetime", nullable=true)
00062      * @Assert\DateTime()
00063      */
00064     private $dtUpdate;
00065 
00066     /**
00067      * @var string
00068      *
00069      * @ORM\Column(name="nb_gmt", type="string", length=15, nullable=true)
00070      * @Assert\Regex("/^[\-]?[0-9]+$/")
00071      * @Assert\Range(
00072      *      min = "-12",
00073      *      max = "12",
00074      *      minMessage = "Time Zone must be greater than -12",
00075      *      maxMessage = "Time Zone must be lesser than 12"
00076      * )
00077      */
00078     private $nbGmt;
00079 
00080     /**
00081      * @var string
00082      *
00083      * @ORM\Column(name="cd_route", type="string", length=45, nullable=true)
00084      * 
00085      */
00086     private $cdRoute;
00087 
00088     /**
00089      * @var \User
00090      *
00091      * @ORM\ManyToOne(targetEntity="User")
00092      * @ORM\JoinColumns({
00093      *   @ORM\JoinColumn(name="id_user_create_by", referencedColumnName="id_user")
00094      * })
00095      */
00096     private $idUserCreateBy;
00097 
00098     /**
00099      * @var \User
00100      *
00101      * @ORM\ManyToOne(targetEntity="User")
00102      * @ORM\JoinColumns({
00103      *   @ORM\JoinColumn(name="id_user_update_by", referencedColumnName="id_user")
00104      * })
00105      */
00106     private $idUserUpdateBy;
00107 
00108     /**
00109      * @var \Country
00110      *
00111      * @ORM\ManyToOne(targetEntity="Country")
00112      * @ORM\JoinColumns({
00113      *   @ORM\JoinColumn(name="id_country", referencedColumnName="id_country")
00114      * })
00115      */
00116     private $idCountry;
00117 
00118 
00119 
00120     /**
00121      * Get idCity
00122      *
00123      * @return integer 
00124      */
00125     public function getIdCity()
00126     {
00127         return $this->idCity;
00128     }
00129 
00130     /**
00131      * Set cdCity
00132      *
00133      * @param string $cdCity
00134      * @return City
00135      */
00136     public function setCdCity($cdCity)
00137     {
00138         $this->cdCity = $cdCity;
00139     
00140         return $this;
00141     }
00142 
00143     /**
00144      * Get cdCity
00145      *
00146      * @return string 
00147      */
00148     public function getCdCity()
00149     {
00150         return $this->cdCity;
00151     }
00152 
00153     /**
00154      * Set lbCity
00155      *
00156      * @param string $lbCity
00157      * @return City
00158      */
00159     public function setLbCity($lbCity)
00160     {
00161         $this->lbCity = $lbCity;
00162     
00163         return $this;
00164     }
00165 
00166     /**
00167      * Get lbCity
00168      *
00169      * @return string 
00170      */
00171     public function getLbCity()
00172     {
00173         return $this->lbCity;
00174     }
00175 
00176     /**
00177      * Set blDeactivated
00178      *
00179      * @param boolean $blDeactivated
00180      * @return City
00181      */
00182     public function setBlDeactivated($blDeactivated)
00183     {
00184         $this->blDeactivated = $blDeactivated;
00185     
00186         return $this;
00187     }
00188 
00189     /**
00190      * Get blDeactivated
00191      *
00192      * @return boolean 
00193      */
00194     public function getBlDeactivated()
00195     {
00196         return $this->blDeactivated;
00197     }
00198 
00199     /**
00200      * Set dtCreate
00201      *
00202      * @param \DateTime $dtCreate
00203      * @return City
00204      */
00205     public function setDtCreate($dtCreate)
00206     {
00207         $this->dtCreate = $dtCreate;
00208     
00209         return $this;
00210     }
00211 
00212     /**
00213      * Get dtCreate
00214      *
00215      * @return \DateTime 
00216      */
00217     public function getDtCreate()
00218     {
00219         return $this->dtCreate;
00220     }
00221 
00222     /**
00223      * Set dtUpdate
00224      *
00225      * @param \DateTime $dtUpdate
00226      * @return City
00227      */
00228     public function setDtUpdate($dtUpdate)
00229     {
00230         $this->dtUpdate = $dtUpdate;
00231     
00232         return $this;
00233     }
00234 
00235     /**
00236      * Get dtUpdate
00237      *
00238      * @return \DateTime 
00239      */
00240     public function getDtUpdate()
00241     {
00242         return $this->dtUpdate;
00243     }
00244 
00245     /**
00246      * Set nbGmt
00247      *
00248      * @param string $nbGmt
00249      * @return City
00250      */
00251     public function setNbGmt($nbGmt)
00252     {
00253         $this->nbGmt = $nbGmt;
00254     
00255         return $this;
00256     }
00257 
00258     /**
00259      * Get nbGmt
00260      *
00261      * @return string 
00262      */
00263     public function getNbGmt()
00264     {
00265         return $this->nbGmt;
00266     }
00267 
00268     /**
00269      * Set cdRoute
00270      *
00271      * @param string $cdRoute
00272      * @return City
00273      */
00274     public function setCdRoute($cdRoute)
00275     {
00276         $this->cdRoute = $cdRoute;
00277     
00278         return $this;
00279     }
00280 
00281     /**
00282      * Get cdRoute
00283      *
00284      * @return string 
00285      */
00286     public function getCdRoute()
00287     {
00288         return $this->cdRoute;
00289     }
00290 
00291     /**
00292      * Set idUserCreateBy
00293      *
00294      * @param \Etrali\GinangBundle\Entity\User $idUserCreateBy
00295      * @return City
00296      */
00297     public function setIdUserCreateBy(\Etrali\GinangBundle\Entity\User $idUserCreateBy = null)
00298     {
00299         $this->idUserCreateBy = $idUserCreateBy;
00300     
00301         return $this;
00302     }
00303 
00304     /**
00305      * Get idUserCreateBy
00306      *
00307      * @return \Etrali\GinangBundle\Entity\User 
00308      */
00309     public function getIdUserCreateBy()
00310     {
00311         return $this->idUserCreateBy;
00312     }
00313 
00314     /**
00315      * Set idUserUpdateBy
00316      *
00317      * @param \Etrali\GinangBundle\Entity\User $idUserUpdateBy
00318      * @return City
00319      */
00320     public function setIdUserUpdateBy(\Etrali\GinangBundle\Entity\User $idUserUpdateBy = null)
00321     {
00322         $this->idUserUpdateBy = $idUserUpdateBy;
00323     
00324         return $this;
00325     }
00326 
00327     /**
00328      * Get idUserUpdateBy
00329      *
00330      * @return \Etrali\GinangBundle\Entity\User 
00331      */
00332     public function getIdUserUpdateBy()
00333     {
00334         return $this->idUserUpdateBy;
00335     }
00336 
00337     /**
00338      * Set idCountry
00339      *
00340      * @param \Etrali\GinangBundle\Entity\Country $idCountry
00341      * @return City
00342      */
00343     public function setIdCountry(\Etrali\GinangBundle\Entity\Country $idCountry = null)
00344     {
00345         $this->idCountry = $idCountry;
00346     
00347         return $this;
00348     }
00349 
00350     /**
00351      * Get idCountry
00352      *
00353      * @return \Etrali\GinangBundle\Entity\Country 
00354      */
00355     public function getIdCountry()
00356     {
00357         return $this->idCountry;
00358     }
00359 }
 All Classes Namespaces Files Functions Variables