1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/tests/models/cms/CmsPhonenumber.php

23 lines
404 B
PHP
Raw Normal View History

<?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);
}
}