29 lines
500 B
PHP
29 lines
500 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\CMS;
|
|
|
|
/**
|
|
* @Entity
|
|
* @Table(name="cms_phonenumbers")
|
|
*/
|
|
class CmsPhonenumber
|
|
{
|
|
/**
|
|
* @Id @Column(type="string", length=50)
|
|
*/
|
|
public $phonenumber;
|
|
/**
|
|
* @ManyToOne(targetEntity="CmsUser")
|
|
* @JoinColumn(name="user_id", referencedColumnName="id")
|
|
*/
|
|
public $user;
|
|
|
|
public function setUser(CmsUser $user) {
|
|
$this->user = $user;
|
|
}
|
|
|
|
public function getUser() {
|
|
return $this->user;
|
|
}
|
|
}
|