| 1 | <?php |
||
| 17 | class User |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | * @ORM\Id() |
||
| 22 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 23 | * @ORM\Column(type="integer") |
||
| 24 | */ |
||
| 25 | protected $id; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var \Doctrine\Common\Collections\Collection|UserGroup[] |
||
| 29 | * @ORM\ManyToMany(targetEntity="UserGroup", mappedBy="users") |
||
| 30 | */ |
||
| 31 | protected $groups; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var \Doctrine\Common\Collections\Collection|Session[] |
||
| 35 | * @ORM\OneToMany(targetEntity="Session", mappedBy="user") |
||
| 36 | */ |
||
| 37 | protected $sessions; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var Address |
||
| 41 | * @ORM\OneToOne(targetEntity="Address") |
||
| 42 | */ |
||
| 43 | protected $address; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * |
||
| 47 | */ |
||
| 48 | public function __construct() |
||
| 53 | } |
||
| 54 |