Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / CMS / CmsEmail.php
1 <?php
2
3 namespace Doctrine\Tests\Models\CMS;
4
5 /**
6  * CmsEmail
7  *
8  * @Entity
9  * @Table(name="cms_emails")
10  */
11 class CmsEmail
12 {
13     /**
14      * @Column(type="integer")
15      * @Id @GeneratedValue
16      */
17     public $id;
18
19     /**
20      * @Column(length=250)
21      */
22     public $email;
23
24     /**
25      * @OneToOne(targetEntity="CmsUser", mappedBy="email")
26      */
27     public $user;
28
29     public function getId() {
30         return $this->id;
31     }
32
33     public function getEmail() {
34         return $this->email;
35     }
36
37     public function setEmail($email) {
38         $this->email = $email;
39     }
40
41     public function getUser() {
42         return $this->user;
43     }
44
45     public function setUser(CmsUser $user) {
46         $this->user = $user;
47     }
48 }