1 | <?php |
||
17 | class ViewRepository extends NestedTreeRepository |
||
18 | { |
||
19 | use StateFullRepositoryTrait; |
||
20 | |||
21 | protected $mainAlias = 'view'; |
||
22 | |||
23 | /** |
||
24 | * Get the query builder for a view by url. |
||
25 | * |
||
26 | * @param string $url The url |
||
27 | * |
||
28 | * @return \Doctrine\ORM\QueryBuilder The query builder |
||
29 | */ |
||
30 | public function getOneByUrl($url) |
||
37 | |||
38 | /** |
||
39 | * Filter the query by the sitemap index (=visibility). |
||
40 | * |
||
41 | * @param bool $indexed |
||
42 | * |
||
43 | * @return ViewRepository |
||
44 | */ |
||
45 | public function filterBySitemapIndexed($indexed = true) |
||
54 | |||
55 | /** |
||
56 | * Get all rentals in the repository. |
||
57 | * |
||
58 | * @param bool $excludeUnpublished Should we get only the published Views ? |
||
59 | * |
||
60 | * @return ViewRepository |
||
61 | */ |
||
62 | public function getAll($excludeUnpublished = false) |
||
78 | |||
79 | /** |
||
80 | * Find a large amount of views by ViewReferences. |
||
81 | * |
||
82 | * @param ViewReference[] $viewReferences |
||
83 | * |
||
84 | * @return View[]|null The entity instance or NULL if the entities cannot be found. |
||
85 | */ |
||
86 | public function findByViewReferences(array $viewReferences) |
||
117 | |||
118 | /** |
||
119 | * Get the the view that is a homepage and a published one. |
||
120 | * |
||
121 | * @param string $locale |
||
122 | * |
||
123 | * @return Page |
||
124 | */ |
||
125 | public function findOneByHomepage($locale = 'fr') |
||
141 | |||
142 | /** |
||
143 | * Get PageSeo. |
||
144 | * |
||
145 | * @param string $method leftJoin|innerJoin |
||
146 | * |
||
147 | * @return ViewRepository |
||
148 | */ |
||
149 | public function joinSeo($method = 'leftJoin') |
||
155 | |||
156 | /** |
||
157 | * Get PageSeo. |
||
158 | * |
||
159 | * @param string $method leftJoin|innerJoin |
||
|
|||
160 | * |
||
161 | * @return ViewRepository |
||
162 | */ |
||
163 | public function joinTranslations($locale) |
||
171 | |||
172 | /** |
||
173 | * Filter the query by the sitemap index (=visibility). |
||
174 | * |
||
175 | * @param array $ids |
||
176 | * |
||
177 | * @return ViewRepository |
||
178 | */ |
||
179 | public function filterByIds($ids) |
||
185 | } |
||
186 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.