| 1 | <?php |
||
| 11 | class User |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @Id |
||
| 15 | * @Column(type="integer") |
||
| 16 | * @GeneratedValue |
||
| 17 | */ |
||
| 18 | protected $id; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @Column(type="string", length=128) |
||
| 22 | */ |
||
| 23 | protected $accountId; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @Column(type="string", length=128) |
||
| 27 | */ |
||
| 28 | protected $password; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @Column(type="string", length=32) |
||
| 32 | */ |
||
| 33 | protected $nickname; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @Column(type="string", length=128) |
||
| 37 | */ |
||
| 38 | protected $email; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @ManyToMany(targetEntity="Role", inversedBy="users") |
||
| 42 | * @JoinTable(name="user_roles") |
||
| 43 | */ |
||
| 44 | protected $roles; |
||
| 45 | |||
| 46 | public function __construct() |
||
| 50 | |||
| 51 | public function getAccountId() |
||
| 55 | |||
| 56 | public function getPassword() |
||
| 60 | |||
| 61 | public function getNickname() |
||
| 65 | |||
| 66 | public function getEmail() |
||
| 70 | |||
| 71 | public function getRoles() |
||
| 75 | } |
||
| 76 |