@@ -5,9 +5,6 @@ |
||
| 5 | 5 | use Sonata\AdminBundle\Form\FormMapper; |
| 6 | 6 | use Sonata\AdminBundle\Form\Type\ModelListType; |
| 7 | 7 | use Sonata\MediaBundle\Admin\GalleryHasMediaAdmin as BaseGalleryHasMediaAdmin; |
| 8 | -use Symfony\Component\Form\Extension\Core\Type\CheckboxType; |
|
| 9 | -use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
|
| 10 | -use Symfony\Component\Form\Extension\Core\Type\TextType; |
|
| 11 | 8 | |
| 12 | 9 | class GalleryHasMediaAdmin extends BaseGalleryHasMediaAdmin |
| 13 | 10 | { |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | /** |
| 341 | 341 | * Get roles |
| 342 | 342 | * |
| 343 | - * @return \Doctrine\Common\Collections\Collection |
|
| 343 | + * @return Role[] |
|
| 344 | 344 | */ |
| 345 | 345 | public function getRoles() |
| 346 | 346 | { |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | /** |
| 451 | 451 | * Get galleryHasMedia |
| 452 | 452 | * |
| 453 | - * @return \Doctrine\Common\Collections\Collection |
|
| 453 | + * @return GalleryHasMedia |
|
| 454 | 454 | */ |
| 455 | 455 | public function getGalleryHasMedia() |
| 456 | 456 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | - * @return mixed |
|
| 145 | + * @return string |
|
| 146 | 146 | */ |
| 147 | 147 | public function getYear() |
| 148 | 148 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | /** |
| 176 | 176 | * Get galleryHasMedia |
| 177 | 177 | * |
| 178 | - * @return \Doctrine\Common\Collections\Collection |
|
| 178 | + * @return GalleryHasMedia |
|
| 179 | 179 | */ |
| 180 | 180 | public function getGalleryHasMedia() |
| 181 | 181 | { |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | /** |
| 125 | 125 | * Get galleryHasMedia |
| 126 | 126 | * |
| 127 | - * @return \Doctrine\Common\Collections\Collection |
|
| 127 | + * @return GalleryHasMedia |
|
| 128 | 128 | */ |
| 129 | 129 | public function getGalleryHasMedia() |
| 130 | 130 | { |
@@ -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(); }); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | protected $count; |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @return mixed |
|
| 35 | + * @return Employee[] |
|
| 36 | 36 | */ |
| 37 | 37 | public function getEmployees() |
| 38 | 38 | { |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | /** |
| 374 | 374 | * Get performanceEvents |
| 375 | 375 | * |
| 376 | - * @return \Doctrine\Common\Collections\Collection |
|
| 376 | + * @return PerformanceEvent[] |
|
| 377 | 377 | */ |
| 378 | 378 | public function getPerformanceEvents() |
| 379 | 379 | { |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | /** |
| 469 | 469 | * Get galleryHasMedia |
| 470 | 470 | * |
| 471 | - * @return \Doctrine\Common\Collections\Collection |
|
| 471 | + * @return GalleryHasMedia |
|
| 472 | 472 | */ |
| 473 | 473 | public function getGalleryHasMedia() |
| 474 | 474 | { |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | } |
| 477 | 477 | |
| 478 | 478 | /** |
| 479 | - * @return Festival |
|
| 479 | + * @return History |
|
| 480 | 480 | */ |
| 481 | 481 | public function getFestival() |
| 482 | 482 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\Entity\PerformanceEvent; |
| 6 | 6 | use App\Entity\RepertoireSeason; |
| 7 | -use App\Repository\RepertoireSeasonRepository; |
|
| 8 | 7 | use Doctrine\Common\EventSubscriber; |
| 9 | 8 | use Doctrine\ORM\Event\OnFlushEventArgs; |
| 10 | 9 | use Doctrine\ORM\Events; |