1 | <?php |
||
13 | class PermissionRepository implements PermissionRepositoryInterface, ObjectRepository |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var \Doctrine\Common\Persistence\ObjectRepository |
||
18 | */ |
||
19 | protected $permissionRepository; |
||
20 | |||
21 | /** |
||
22 | * @param ObjectRepository $permissionRepository |
||
23 | */ |
||
24 | public function __construct(ObjectRepository $permissionRepository) |
||
28 | |||
29 | /** |
||
30 | * @param string $name |
||
31 | * @return Permission|null |
||
32 | */ |
||
33 | public function findByName($name) |
||
37 | |||
38 | /** |
||
39 | * findAll(): defined by ObjectRepository. |
||
40 | * |
||
41 | * @see ObjectRepository::findAll() |
||
42 | * @return Permission[] |
||
43 | */ |
||
44 | public function findAll() |
||
48 | |||
49 | /** |
||
50 | * find(): defined by ObjectRepository. |
||
51 | * |
||
52 | * @see ObjectRepository::find() |
||
53 | * @param int $id |
||
54 | * @return Permission|null |
||
55 | */ |
||
56 | public function find($id) |
||
60 | |||
61 | /** |
||
62 | * findBy(): defined by ObjectRepository. |
||
63 | * |
||
64 | * @see ObjectRepository::findBy() |
||
65 | * @param array $criteria |
||
66 | * @param array|null $orderBy |
||
67 | * @param int|null $limit |
||
68 | * @param int|null $offset |
||
69 | * @return Permission[] |
||
70 | */ |
||
71 | public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) |
||
75 | |||
76 | /** |
||
77 | * findOneBy(): defined by ObjectRepository. |
||
78 | * |
||
79 | * @see ObjectRepository::findOneBy() |
||
80 | * @param array $criteria |
||
81 | * @return Permission|null |
||
82 | */ |
||
83 | public function findOneBy(array $criteria) |
||
87 | |||
88 | /** |
||
89 | * getClassName(): defined by ObjectRepository. |
||
90 | * |
||
91 | * @see ObjectRepository::getClassName() |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getClassName() |
||
98 | } |
||
99 |