2013-03-31 03:47:45 +04:00
|
|
|
<?php
|
|
|
|
|
2013-04-07 18:26:05 +04:00
|
|
|
namespace Doctrine\Tests\Models\DDC2372;
|
2013-03-31 03:47:45 +04:00
|
|
|
|
2013-04-07 18:26:05 +04:00
|
|
|
use Doctrine\Tests\Models\DDC2372\Traits\DDC2372AddressTrait;
|
2013-03-31 03:47:45 +04:00
|
|
|
|
2013-04-07 18:26:05 +04:00
|
|
|
/** @Entity @Table(name="users") */
|
|
|
|
class DDC2372User
|
2013-03-31 03:47:45 +04:00
|
|
|
{
|
2013-04-07 18:26:05 +04:00
|
|
|
use DDC2372AddressTrait;
|
2013-03-31 03:47:45 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @Id @Column(type="integer")
|
|
|
|
* @GeneratedValue(strategy="AUTO")
|
|
|
|
*/
|
|
|
|
private $id;
|
|
|
|
/** @Column(type="string", length=50) */
|
|
|
|
private $name;
|
|
|
|
|
|
|
|
public function getId()
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setName($name)
|
|
|
|
{
|
|
|
|
$this->name = $name;
|
|
|
|
}
|
|
|
|
}
|