1 | <?php |
||
14 | class ElasticSearchAdapter implements FinderAdapterInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * |
||
19 | * @var QueryBuilder |
||
20 | */ |
||
21 | private $qb = null; |
||
22 | |||
23 | 4 | public function __construct($models) |
|
28 | |||
29 | public function count(CriteriaInterface $criteria) |
||
33 | |||
34 | 3 | public function findMany(CriteriaInterface $criteria, $fields = array()) |
|
39 | |||
40 | public function findOne(CriteriaInterface $criteria, $fields = array()) |
||
50 | |||
51 | /** |
||
52 | * |
||
53 | * @internal Used for debugging purposes, should not be used for any manipulations! |
||
54 | * @return QueryBuilder |
||
55 | */ |
||
56 | public function getQueryBuilder() |
||
60 | |||
61 | 3 | private function prepare(CriteriaInterface $criteria, $fields) |
|
74 | |||
75 | } |
||
76 |