| @@ -52,6 +52,9 @@ discard block | ||
| 52 | 52 | $event->getDealerSchedules()->delete(); | 
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | + /** | |
| 56 | + * @param string $locale | |
| 57 | + */ | |
| 55 | 58 | public function createFromArray($data, $locale = null) | 
| 56 | 59 |      { | 
| 57 | 60 | $dealer_schedules = $this->hydrateObjectArray($data, $locale); | 
| @@ -64,6 +67,9 @@ discard block | ||
| 64 | 67 | return $event->getDealerSchedules(); | 
| 65 | 68 | } | 
| 66 | 69 | |
| 70 | + /** | |
| 71 | + * @param string $locale | |
| 72 | + */ | |
| 67 | 73 | public function updateFromArray($data, $locale = null) | 
| 68 | 74 |      { | 
| 69 | 75 | $dealer_schedules = $this->hydrateObjectArray($data, $locale); | 
| @@ -88,6 +94,9 @@ discard block | ||
| 88 | 94 | } | 
| 89 | 95 | } | 
| 90 | 96 | |
| 97 | + /** | |
| 98 | + * @return DealerShedules | |
| 99 | + */ | |
| 91 | 100 | protected function hydrateObjectArray($data, $locale = null) | 
| 92 | 101 |      { | 
| 93 | 102 | $model = new DealerShedules(); | 
| @@ -112,6 +112,9 @@ | ||
| 112 | 112 | } | 
| 113 | 113 | } | 
| 114 | 114 | |
| 115 | + /** | |
| 116 | + * @return DealerContent | |
| 117 | + */ | |
| 115 | 118 | protected function hydrateObjectArray($data, $locale = null) | 
| 116 | 119 |      { | 
| 117 | 120 | $model = new DealerContent(); | 
| @@ -97,6 +97,9 @@ | ||
| 97 | 97 | } | 
| 98 | 98 | } | 
| 99 | 99 | |
| 100 | + /** | |
| 101 | + * @return DealerFolder | |
| 102 | + */ | |
| 100 | 103 | protected function hydrateObjectArray($data, $locale = null) | 
| 101 | 104 |      { | 
| 102 | 105 | $model = new DealerFolder(); | 
| @@ -113,6 +113,9 @@ | ||
| 113 | 113 | } | 
| 114 | 114 | } | 
| 115 | 115 | |
| 116 | + /** | |
| 117 | + * @return DealerBrand | |
| 118 | + */ | |
| 116 | 119 | protected function hydrateObjectArray($data, $locale = null) | 
| 117 | 120 |      { | 
| 118 | 121 | $model = new DealerBrand(); | 
| @@ -113,6 +113,9 @@ | ||
| 113 | 113 | } | 
| 114 | 114 | } | 
| 115 | 115 | |
| 116 | + /** | |
| 117 | + * @return DealerProduct | |
| 118 | + */ | |
| 116 | 119 | protected function hydrateObjectArray($data, $locale = null) | 
| 117 | 120 |      { | 
| 118 | 121 | $model = new DealerProduct(); | 
| @@ -15,12 +15,10 @@ | ||
| 15 | 15 | |
| 16 | 16 | use Dealer\Dealer; | 
| 17 | 17 | use Dealer\Model\DealerQuery; | 
| 18 | -use Propel\Generator\Model\Database; | |
| 19 | 18 | use Propel\Runtime\Propel; | 
| 20 | 19 | use Symfony\Component\HttpFoundation\RedirectResponse; | 
| 21 | 20 | use Thelia\Controller\Admin\BaseAdminController; | 
| 22 | 21 | use Thelia\Core\Security\AccessManager; | 
| 23 | -use Thelia\Core\Security\Resource\AdminResources; | |
| 24 | 22 | use Thelia\Core\Thelia; | 
| 25 | 23 | use Thelia\Form\Exception\FormValidationException; | 
| 26 | 24 | use Thelia\Tools\URL; | 
| @@ -113,6 +113,9 @@ | ||
| 113 | 113 | } | 
| 114 | 114 | } | 
| 115 | 115 | |
| 116 | + /** | |
| 117 | + * @return DealerAdmin | |
| 118 | + */ | |
| 116 | 119 | protected function hydrateObjectArray($data, $locale = null) | 
| 117 | 120 |      { | 
| 118 | 121 | $model = new DealerAdmin(); | 
| @@ -19,7 +19,6 @@ | ||
| 19 | 19 | use Propel\Runtime\Propel; | 
| 20 | 20 | use Symfony\Component\HttpFoundation\RedirectResponse; | 
| 21 | 21 | use Thelia\Core\Security\AccessManager; | 
| 22 | -use Thelia\Core\Security\Resource\AdminResources; | |
| 23 | 22 | use Thelia\Form\Exception\FormValidationException; | 
| 24 | 23 | use Thelia\Tools\URL; | 
| 25 | 24 | |