1 | <?php |
||
8 | class EntitySelect |
||
9 | { |
||
10 | /** |
||
11 | * @var EntityRepository |
||
12 | */ |
||
13 | private $repository = null; |
||
14 | |||
15 | private $entityName = null; |
||
16 | private $criteria = null; |
||
17 | private $orderBy = null; |
||
18 | private $offsetStart = null; |
||
19 | private $offsetLength = null; |
||
20 | |||
21 | public static function select($entityName) |
||
25 | |||
26 | private function __construct($entityName) |
||
31 | |||
32 | public function findById($id) |
||
36 | |||
37 | public function find() |
||
41 | |||
42 | public function findOne() |
||
46 | |||
47 | public function findAll() |
||
51 | |||
52 | public function criteria(array $criteria) |
||
57 | |||
58 | public function orderBy(array $orderBy) |
||
63 | |||
64 | public function offsetStart($offsetStart) |
||
69 | |||
70 | public function offsetLength($offsetLength) |
||
75 | } |