2008-05-06 17:41:22 +04:00
|
|
|
<?php
|
2009-01-05 20:25:56 +03:00
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
namespace Doctrine\Tests\Models\CMS;
|
|
|
|
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Entity
|
|
|
|
* @Table(name="cms_phonenumbers")
|
2009-01-05 20:25:56 +03:00
|
|
|
*/
|
2009-01-09 19:25:06 +03:00
|
|
|
class CmsPhonenumber
|
2008-05-06 17:41:22 +04:00
|
|
|
{
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
2010-04-10 02:00:36 +04:00
|
|
|
* @Id @Column(length=50)
|
2009-01-05 20:25:56 +03:00
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $phonenumber;
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
2010-04-10 02:00:36 +04:00
|
|
|
* @ManyToOne(targetEntity="CmsUser", inversedBy="phonenumbers")
|
2009-05-29 14:23:13 +04:00
|
|
|
* @JoinColumn(name="user_id", referencedColumnName="id")
|
2009-01-05 20:25:56 +03:00
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $user;
|
2009-01-09 19:25:06 +03:00
|
|
|
|
|
|
|
public function setUser(CmsUser $user) {
|
|
|
|
$this->user = $user;
|
2009-07-02 15:48:44 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getUser() {
|
|
|
|
return $this->user;
|
2009-01-09 19:25:06 +03:00
|
|
|
}
|
2008-05-06 17:41:22 +04:00
|
|
|
}
|