| 1 | <?php |
||
| 11 | class Permission |
||
| 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 $operation; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @ManyToMany(targetEntity="Role") |
||
| 27 | * @JoinTable(name="role_permissions") |
||
| 28 | */ |
||
| 29 | protected $roles; |
||
| 30 | |||
| 31 | public function __construct() |
||
| 35 | |||
| 36 | public function getOperation() |
||
| 40 | |||
| 41 | public function getRoles() |
||
| 45 | } |
||
| 46 |