Gina Next Generation
 All Classes Namespaces Files Functions Variables
CustomerAddress.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  * CustomerAddress
00009  *
00010  * @ORM\Table(name="customer_address")
00011  * @ORM\Entity
00012  */
00013 class CustomerAddress
00014 {
00015     /**
00016      * @var integer
00017      *
00018      * @ORM\Column(name="id", type="integer", nullable=false)
00019      * @ORM\Id
00020      * @ORM\GeneratedValue(strategy="IDENTITY")
00021      */
00022     private $id;
00023 
00024     /**
00025      * @var \Customer
00026      *
00027      * @ORM\ManyToOne(targetEntity="Customer")
00028      * @ORM\JoinColumns({
00029      *   @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer")
00030      * })
00031      */
00032     private $idCustomer;
00033 
00034     /**
00035      * @var \Address
00036      *
00037      * @ORM\ManyToOne(targetEntity="Address")
00038      * @ORM\JoinColumns({
00039      *   @ORM\JoinColumn(name="id_address", referencedColumnName="id_address")
00040      * })
00041      */
00042     private $idAddress;
00043 
00044 
00045 
00046     /**
00047      * Get id
00048      *
00049      * @return integer 
00050      */
00051     public function getId()
00052     {
00053         return $this->id;
00054     }
00055 
00056     /**
00057      * Set idCustomer
00058      *
00059      * @param \Etrali\GinangBundle\Entity\Customer $idCustomer
00060      * @return CustomerAddress
00061      */
00062     public function setIdCustomer(\Etrali\GinangBundle\Entity\Customer $idCustomer = null)
00063     {
00064         $this->idCustomer = $idCustomer;
00065     
00066         return $this;
00067     }
00068 
00069     /**
00070      * Get idCustomer
00071      *
00072      * @return \Etrali\GinangBundle\Entity\Customer 
00073      */
00074     public function getIdCustomer()
00075     {
00076         return $this->idCustomer;
00077     }
00078 
00079     /**
00080      * Set idAddress
00081      *
00082      * @param \Etrali\GinangBundle\Entity\Address $idAddress
00083      * @return CustomerAddress
00084      */
00085     public function setIdAddress(\Etrali\GinangBundle\Entity\Address $idAddress = null)
00086     {
00087         $this->idAddress = $idAddress;
00088     
00089         return $this;
00090     }
00091 
00092     /**
00093      * Get idAddress
00094      *
00095      * @return \Etrali\GinangBundle\Entity\Address 
00096      */
00097     public function getIdAddress()
00098     {
00099         return $this->idAddress;
00100     }
00101 }
 All Classes Namespaces Files Functions Variables