module/Applications/src/Applications/Controller/ApplyController.php 1 location
|
@@ 226-233 (lines=8) @@
|
| 223 |
|
|
| 224 |
|
$form->setData($data); |
| 225 |
|
|
| 226 |
|
if (!$form->isValid()) { |
| 227 |
|
return new JsonModel( |
| 228 |
|
array( |
| 229 |
|
'valid' => false, |
| 230 |
|
'errors' => $form->getMessages(), |
| 231 |
|
) |
| 232 |
|
); |
| 233 |
|
} |
| 234 |
|
$application = $this->container->getEntity(); |
| 235 |
|
$this->getServiceLocator()->get('repositories')->store($application); |
| 236 |
|
|
module/Auth/src/Auth/Controller/ManageController.php 1 location
|
@@ 70-77 (lines=8) @@
|
| 67 |
|
$data = array_merge($postData, $filesData); |
| 68 |
|
$form->setData($data); |
| 69 |
|
|
| 70 |
|
if (!$form->isValid()) { |
| 71 |
|
return new JsonModel( |
| 72 |
|
array( |
| 73 |
|
'valid' => false, |
| 74 |
|
'errors' => $form->getMessages(), |
| 75 |
|
) |
| 76 |
|
); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
$serviceLocator->get('repositories')->store($user); |
| 80 |
|
|