@@ -65,6 +65,9 @@ |
||
65 | 65 | } |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param string $csvFile |
|
70 | + */ |
|
68 | 71 | protected function csvToArray($entityName, $csvFile) |
69 | 72 | { |
70 | 73 | if (($handle = fopen($csvFile, 'r')) !== false) { |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | /** |
340 | 340 | * Get roles |
341 | 341 | * |
342 | - * @return \Doctrine\Common\Collections\Collection |
|
342 | + * @return Role[] |
|
343 | 343 | */ |
344 | 344 | public function getRoles() |
345 | 345 | { |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | /** |
450 | 450 | * Get galleryHasMedia |
451 | 451 | * |
452 | - * @return \Doctrine\Common\Collections\Collection |
|
452 | + * @return \Application\Sonata\MediaBundle\Entity\GalleryHasMedia |
|
453 | 453 | */ |
454 | 454 | public function getGalleryHasMedia() |
455 | 455 | { |
@@ -175,7 +175,7 @@ |
||
175 | 175 | /** |
176 | 176 | * Get galleryHasMedia |
177 | 177 | * |
178 | - * @return \Doctrine\Common\Collections\Collection |
|
178 | + * @return \Application\Sonata\MediaBundle\Entity\GalleryHasMedia |
|
179 | 179 | */ |
180 | 180 | public function getGalleryHasMedia() |
181 | 181 | { |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | /** |
366 | 366 | * Get performanceEvents |
367 | 367 | * |
368 | - * @return \Doctrine\Common\Collections\Collection |
|
368 | + * @return PerformanceEvent[] |
|
369 | 369 | */ |
370 | 370 | public function getPerformanceEvents() |
371 | 371 | { |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | /** |
400 | 400 | * Get roles |
401 | 401 | * |
402 | - * @return \Doctrine\Common\Collections\Collection |
|
402 | + * @return Role[] |
|
403 | 403 | */ |
404 | 404 | public function getRoles() |
405 | 405 | { |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | /** |
461 | 461 | * Get galleryHasMedia |
462 | 462 | * |
463 | - * @return \Doctrine\Common\Collections\Collection |
|
463 | + * @return \Application\Sonata\MediaBundle\Entity\GalleryHasMedia |
|
464 | 464 | */ |
465 | 465 | public function getGalleryHasMedia() |
466 | 466 | { |
@@ -117,6 +117,9 @@ |
||
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
120 | + /** |
|
121 | + * @param string $locale |
|
122 | + */ |
|
120 | 123 | protected function formatGalleries($galleries, $locale) |
121 | 124 | { |
122 | 125 | $formatedGaleries = array_filter($galleries, function($gallery) { return $gallery->getMedia(); }); |
@@ -175,7 +175,7 @@ |
||
175 | 175 | /** |
176 | 176 | * Get galleryHasMedia |
177 | 177 | * |
178 | - * @return \Doctrine\Common\Collections\Collection |
|
178 | + * @return \Application\Sonata\MediaBundle\Entity\GalleryHasMedia |
|
179 | 179 | */ |
180 | 180 | public function getGalleryHasMedia() |
181 | 181 | { |