@@ -89,6 +89,9 @@ |
||
89 | 89 | return $this->exportFields; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param string $header |
|
94 | + */ |
|
92 | 95 | public function addExportField($name, $header, $template = null, FieldAlias $alias = null) |
93 | 96 | { |
94 | 97 | $this->exportFields[] = new Field($name, $header); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * You can override this method to return the correct entity manager when using multiple databases ... |
35 | 35 | * |
36 | - * @return \Doctrine\Common\Persistence\ObjectManager|object |
|
36 | + * @return \Doctrine\Persistence\ObjectManager |
|
37 | 37 | */ |
38 | 38 | protected function getEntityManager() |
39 | 39 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * Shows the list of entities |
45 | 45 | * |
46 | 46 | * @param AbstractAdminListConfigurator $configurator |
47 | - * @param null|Request $request |
|
47 | + * @param Request $request |
|
48 | 48 | * |
49 | 49 | * @return Response |
50 | 50 | */ |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * |
94 | 94 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
95 | 95 | * @param string $type The type to add |
96 | - * @param null|Request $request |
|
96 | + * @param Request $request |
|
97 | 97 | * |
98 | 98 | * @throws AccessDeniedHttpException |
99 | 99 | * |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | * |
189 | 189 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
190 | 190 | * @param string $entityId The id of the entity that will be edited |
191 | - * @param null|Request $request |
|
191 | + * @param Request $request |
|
192 | 192 | * |
193 | 193 | * @throws NotFoundHttpException |
194 | 194 | * @throws AccessDeniedHttpException |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | * |
343 | 343 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
344 | 344 | * @param int $entityId The id to delete |
345 | - * @param null|Request $request |
|
345 | + * @param Request $request |
|
346 | 346 | * |
347 | 347 | * @throws NotFoundHttpException |
348 | 348 | * @throws AccessDeniedHttpException |
@@ -469,6 +469,9 @@ discard block |
||
469 | 469 | ); |
470 | 470 | } |
471 | 471 | |
472 | + /** |
|
473 | + * @param \Doctrine\Persistence\ObjectRepository $repo |
|
474 | + */ |
|
472 | 475 | private function getMaxSortableField($repo, $sort) |
473 | 476 | { |
474 | 477 | $maxWeight = $repo->createQueryBuilder('i') |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * You can override this method to return the correct entity manager when using multiple databases ... |
19 | 19 | * |
20 | - * @return \Doctrine\Common\Persistence\ObjectManager|object |
|
20 | + * @return \Doctrine\Persistence\ObjectManager |
|
21 | 21 | */ |
22 | 22 | protected function getEntityManager() |
23 | 23 | { |