1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/tests/models/cms/CmsPhonenumber.php
2009-01-09 16:25:06 +00:00

23 lines
404 B
PHP
Executable File

<?php
/**
* @DoctrineEntity
*/
class CmsPhonenumber
{
/**
* @DoctrineColumn(type="varchar", length=50)
* @DoctrineId
*/
public $phonenumber;
/**
* @DoctrineManyToOne(targetEntity="CmsUser", joinColumns={"user_id" = "id"})
*/
public $user;
public function setUser(CmsUser $user) {
$this->user = $user;
$user->addPhonenumber($this);
}
}