48 lines
730 B
PHP
48 lines
730 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\CMS;
|
|
|
|
/**
|
|
* CmsEmail
|
|
*
|
|
* @Entity
|
|
* @Table(name="cms_emails")
|
|
*/
|
|
class CmsEmail
|
|
{
|
|
/**
|
|
* @Column(type="integer")
|
|
* @Id @GeneratedValue
|
|
*/
|
|
public $id;
|
|
|
|
/**
|
|
* @Column(length=250)
|
|
*/
|
|
public $email;
|
|
|
|
/**
|
|
* @OneToOne(targetEntity="CmsUser", mappedBy="email")
|
|
*/
|
|
public $user;
|
|
|
|
public function getId() {
|
|
return $this->id;
|
|
}
|
|
|
|
public function getEmail() {
|
|
return $this->email;
|
|
}
|
|
|
|
public function setEmail($email) {
|
|
$this->email = $email;
|
|
}
|
|
|
|
public function getUser() {
|
|
return $this->user;
|
|
}
|
|
|
|
public function setUser(CmsUser $user) {
|
|
$this->user = $user;
|
|
}
|
|
} |