1
0
mirror of synced 2024-12-15 07:36:03 +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);
}
}