1 | <?php |
||
25 | class ArticleRepository extends EntityRepository implements ArticleRepositoryInterface |
||
26 | { |
||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 4 | public function findOneBySlug($slug) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function findAllArticles() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 12 | public function getByCriteria(Criteria $criteria, array $sorting): QueryBuilder |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 2 | public function countByCriteria(Criteria $criteria): int |
|
71 | |||
72 | /** |
||
73 | * @param string $identifier |
||
74 | * @param array $order |
||
75 | * |
||
76 | * @return SqlQuery |
||
77 | * |
||
78 | * @throws \Exception |
||
79 | */ |
||
80 | public function getQueryForRouteArticles(string $identifier, array $order = []) |
||
84 | } |
||
85 |