@@ -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 | |
@@ -56,6 +56,9 @@ discard block |
||
| 56 | 56 | $event->getDealerSchedules()->delete(); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param string $locale |
|
| 61 | + */ |
|
| 59 | 62 | public function createFromArray($data, $locale = null) |
| 60 | 63 | { |
| 61 | 64 | $dealer_schedules = $this->hydrateObjectArray($data, $locale); |
@@ -81,6 +84,9 @@ discard block |
||
| 81 | 84 | return $event->getDealerSchedules(); |
| 82 | 85 | } |
| 83 | 86 | |
| 87 | + /** |
|
| 88 | + * @param string $locale |
|
| 89 | + */ |
|
| 84 | 90 | public function updateFromArray($data, $locale = null) |
| 85 | 91 | { |
| 86 | 92 | $dealer_schedules = $this->hydrateObjectArray($data, $locale); |
@@ -105,6 +111,9 @@ discard block |
||
| 105 | 111 | } |
| 106 | 112 | } |
| 107 | 113 | |
| 114 | + /** |
|
| 115 | + * @return DealerShedules |
|
| 116 | + */ |
|
| 108 | 117 | protected function hydrateObjectArray($data, $locale = null) |
| 109 | 118 | { |
| 110 | 119 | $model = new DealerShedules(); |
@@ -321,7 +330,6 @@ discard block |
||
| 321 | 330 | * @param $idDealer |
| 322 | 331 | * @param $numDay |
| 323 | 332 | * @param $date |
| 324 | - * @param null $delay |
|
| 325 | 333 | * @return array |
| 326 | 334 | * @throws \Propel\Runtime\Exception\PropelException |
| 327 | 335 | */ |