2008-05-06 13:41:22 +00:00
|
|
|
<?php
|
2009-01-05 17:25:56 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @DoctrineEntity
|
|
|
|
*/
|
2009-01-09 16:25:06 +00:00
|
|
|
class CmsPhonenumber
|
2008-05-06 13:41:22 +00:00
|
|
|
{
|
2009-01-05 17:25:56 +00:00
|
|
|
/**
|
2009-01-07 17:46:02 +00:00
|
|
|
* @DoctrineColumn(type="varchar", length=50)
|
2009-01-05 17:25:56 +00:00
|
|
|
* @DoctrineId
|
|
|
|
*/
|
2008-12-18 14:08:11 +00:00
|
|
|
public $phonenumber;
|
2009-01-05 17:25:56 +00:00
|
|
|
/**
|
|
|
|
* @DoctrineManyToOne(targetEntity="CmsUser", joinColumns={"user_id" = "id"})
|
|
|
|
*/
|
2008-12-18 14:08:11 +00:00
|
|
|
public $user;
|
2009-01-09 16:25:06 +00:00
|
|
|
|
|
|
|
public function setUser(CmsUser $user) {
|
|
|
|
$this->user = $user;
|
|
|
|
$user->addPhonenumber($this);
|
|
|
|
}
|
2008-05-06 13:41:22 +00:00
|
|
|
}
|