1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/tests/Doctrine/Tests/Models/CMS/CmsPhonenumber.php
2011-12-19 22:56:19 +01:00

29 lines
527 B
PHP

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