Gina Next Generation
 All Classes Namespaces Files Functions Variables
UserInBranch.php
Go to the documentation of this file.
00001 <?php
00002 
00003 namespace Etrali\GinangBundle\Entity;
00004 
00005 use Doctrine\ORM\Mapping as ORM;
00006 
00007 /**
00008  * UserInBranch
00009  *
00010  * @ORM\Table(name="user_in_branch")
00011  * @ORM\Entity
00012  */
00013 class UserInBranch
00014 {
00015     /**
00016      * @var integer
00017      *
00018      * @ORM\Column(name="id_user_in_branch", type="integer", nullable=false)
00019      * @ORM\Id
00020      * @ORM\GeneratedValue(strategy="IDENTITY")
00021      */
00022     private $idUserInBranch;
00023 
00024     /**
00025      * @var \User
00026      *
00027      * @ORM\ManyToOne(targetEntity="User")
00028      * @ORM\JoinColumns({
00029      *   @ORM\JoinColumn(name="id_user", referencedColumnName="id_user")
00030      * })
00031      */
00032     private $idUser;
00033 
00034     /**
00035      * @var \Branch
00036      *
00037      * @ORM\ManyToOne(targetEntity="Branch")
00038      * @ORM\JoinColumns({
00039      *   @ORM\JoinColumn(name="id_branch", referencedColumnName="id_branch")
00040      * })
00041      */
00042     private $idBranch;
00043 
00044 
00045 
00046     /**
00047      * Get idUserInBranch
00048      *
00049      * @return integer 
00050      */
00051     public function getIdUserInBranch()
00052     {
00053         return $this->idUserInBranch;
00054     }
00055 
00056     /**
00057      * Set idUser
00058      *
00059      * @param \Etrali\GinangBundle\Entity\User $idUser
00060      * @return UserInBranch
00061      */
00062     public function setIdUser(\Etrali\GinangBundle\Entity\User $idUser = null)
00063     {
00064         $this->idUser = $idUser;
00065     
00066         return $this;
00067     }
00068 
00069     /**
00070      * Get idUser
00071      *
00072      * @return \Etrali\GinangBundle\Entity\User 
00073      */
00074     public function getIdUser()
00075     {
00076         return $this->idUser;
00077     }
00078 
00079     /**
00080      * Set idBranch
00081      *
00082      * @param \Etrali\GinangBundle\Entity\Branch $idBranch
00083      * @return UserInBranch
00084      */
00085     public function setIdBranch(\Etrali\GinangBundle\Entity\Branch $idBranch = null)
00086     {
00087         $this->idBranch = $idBranch;
00088     
00089         return $this;
00090     }
00091 
00092     /**
00093      * Get idBranch
00094      *
00095      * @return \Etrali\GinangBundle\Entity\Branch 
00096      */
00097     public function getIdBranch()
00098     {
00099         return $this->idBranch;
00100     }
00101 }
 All Classes Namespaces Files Functions Variables