Gina Next Generation
 All Classes Namespaces Files Functions Variables
Country.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  * Country
00009  *
00010  * @ORM\Table(name="country")
00011  * @ORM\Entity
00012  */
00013 class Country
00014 {
00015     /**
00016      * @var integer $idCountry
00017      *
00018      * @ORM\Column(name="id_country", type="integer", nullable=false)
00019      * @ORM\Id
00020      * @ORM\GeneratedValue(strategy="AUTO")
00021      */
00022     private $idCountry;
00023 
00024     /**
00025      * @var string
00026      * @ORM\Column(name="cd_country", type="string", length=15, nullable=false)
00027      * @Assert\NotBlank()
00028      * @Assert\MaxLength(15)
00029      */
00030     private $cdCountry;
00031 
00032     /**
00033      * @var string
00034      *
00035      * @ORM\Column(name="lb_country", type="string", length=100, nullable=false)
00036      * @Assert\NotBlank()
00037      * @Assert\MaxLength(50)
00038      */
00039     private $lbCountry;
00040 
00041     /**
00042      * @var boolean
00043      *
00044      * @ORM\Column(name="bl_deactivated", type="boolean", nullable=true)
00045      */
00046     private $blDeactivated=true;
00047 
00048     /**
00049      * @var \DateTime
00050      *
00051      * @ORM\Column(name="dt_create", type="datetime", nullable=true)
00052      * @Assert\DateTime()
00053      */
00054     private $dtCreate;
00055 
00056     /**
00057      * @var \DateTime
00058      *
00059      * @ORM\Column(name="dt_update", type="datetime", nullable=true)
00060      * @Assert\DateTime()
00061      */
00062     private $dtUpdate;
00063 
00064     /**
00065      * @var \User
00066      *
00067      * @ORM\ManyToOne(targetEntity="User")
00068      * @ORM\JoinColumns({
00069      *   @ORM\JoinColumn(name="id_user_create_by", referencedColumnName="id_user")
00070      * })
00071      */
00072     private $idUserCreateBy;
00073 
00074     /**
00075      * @var \User
00076      *
00077      * @ORM\ManyToOne(targetEntity="User")
00078      * @ORM\JoinColumns({
00079      *   @ORM\JoinColumn(name="id_user_update_by", referencedColumnName="id_user")
00080      * })
00081      */
00082     private $idUserUpdateBy;
00083 
00084 
00085 
00086     /**
00087      * Get idCountry
00088      *
00089      * @return integer 
00090      */
00091     public function getIdCountry()
00092     {
00093         return $this->idCountry;
00094     }
00095 
00096     /**
00097      * Set cdCountry
00098      *
00099      * @param string $cdCountry
00100      * @return Country
00101      */
00102     public function setCdCountry($cdCountry)
00103     {
00104         $this->cdCountry = $cdCountry;
00105     
00106         return $this;
00107     }
00108 
00109     /**
00110      * Get cdCountry
00111      *
00112      * @return string 
00113      */
00114     public function getCdCountry()
00115     {
00116         return $this->cdCountry;
00117     }
00118 
00119     /**
00120      * Set lbCountry
00121      *
00122      * @param string $lbCountry
00123      * @return Country
00124      */
00125     public function setLbCountry($lbCountry)
00126     {
00127         $this->lbCountry = $lbCountry;
00128     
00129         return $this;
00130     }
00131 
00132     /**
00133      * Get lbCountry
00134      *
00135      * @return string 
00136      */
00137     public function getLbCountry()
00138     {
00139         return $this->lbCountry;
00140     }
00141 
00142     /**
00143      * Set blDeactivated
00144      *
00145      * @param boolean $blDeactivated
00146      * @return Country
00147      */
00148     public function setBlDeactivated($blDeactivated)
00149     {
00150         $this->blDeactivated = $blDeactivated;
00151     
00152         return $this;
00153     }
00154 
00155     /**
00156      * Get blDeactivated
00157      *
00158      * @return boolean 
00159      */
00160     public function getBlDeactivated()
00161     {
00162         return $this->blDeactivated;
00163     }
00164 
00165     /**
00166      * Set dtCreate
00167      *
00168      * @param \DateTime $dtCreate
00169      * @return Country
00170      */
00171     public function setDtCreate($dtCreate)
00172     {
00173         $this->dtCreate = $dtCreate;
00174     
00175         return $this;
00176     }
00177 
00178     /**
00179      * Get dtCreate
00180      *
00181      * @return \DateTime 
00182      */
00183     public function getDtCreate()
00184     {
00185         return $this->dtCreate;
00186     }
00187 
00188     /**
00189      * Set dtUpdate
00190      *
00191      * @param \DateTime $dtUpdate
00192      * @return Country
00193      */
00194     public function setDtUpdate($dtUpdate)
00195     {
00196         $this->dtUpdate = $dtUpdate;
00197     
00198         return $this;
00199     }
00200 
00201     /**
00202      * Get dtUpdate
00203      *
00204      * @return \DateTime 
00205      */
00206     public function getDtUpdate()
00207     {
00208         return $this->dtUpdate;
00209     }
00210 
00211     /**
00212      * Set idUserCreateBy
00213      *
00214      * @param \Etrali\GinangBundle\Entity\User $idUserCreateBy
00215      * @return Country
00216      */
00217     public function setIdUserCreateBy(\Etrali\GinangBundle\Entity\User $idUserCreateBy = null)
00218     {
00219         $this->idUserCreateBy = $idUserCreateBy;
00220     
00221         return $this;
00222     }
00223 
00224     /**
00225      * Get idUserCreateBy
00226      *
00227      * @return \Etrali\GinangBundle\Entity\User 
00228      */
00229     public function getIdUserCreateBy()
00230     {
00231         return $this->idUserCreateBy;
00232     }
00233 
00234     /**
00235      * Set idUserUpdateBy
00236      *
00237      * @param \Etrali\GinangBundle\Entity\User $idUserUpdateBy
00238      * @return Country
00239      */
00240     public function setIdUserUpdateBy(\Etrali\GinangBundle\Entity\User $idUserUpdateBy = null)
00241     {
00242         $this->idUserUpdateBy = $idUserUpdateBy;
00243     
00244         return $this;
00245     }
00246 
00247     /**
00248      * Get idUserUpdateBy
00249      *
00250      * @return \Etrali\GinangBundle\Entity\User 
00251      */
00252     public function getIdUserUpdateBy()
00253     {
00254         return $this->idUserUpdateBy;
00255     }
00256     
00257     public function __toString()
00258     {
00259         return $this->getLbCountry();
00260     }
00261 }
 All Classes Namespaces Files Functions Variables