Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / CMS / CmsEmployee.php
1 <?php
2
3 namespace Doctrine\Tests\Models\CMS;
4
5 /**
6  * Description of CmsEmployee
7  *
8  * @author robo
9  * @Entity
10  * @Table(name="cms_employees")
11  */
12 class CmsEmployee
13 {
14     /**
15      * @Id
16      * @Column(type="integer")
17      * @GeneratedValue
18      */
19     private $id;
20
21     /**
22      * @Column
23      */
24     private $name;
25
26     /**
27      * @OneToOne(targetEntity="CmsEmployee")
28      * @JoinColumn(name="spouse_id", referencedColumnName="id")
29      */
30     private $spouse;
31
32     public function getId() {
33         return $this->id;
34     }
35
36     public function getName() {
37         return $this->name;
38     }
39
40     public function getSpouse() {
41         return $this->spouse;
42     }
43 }
44