module/Auth/src/Auth/Controller/ManageController.php 1 location
|
@@ 56-63 (lines=8) @@
|
| 53 |
|
$data = array_merge($postData, $filesData); |
| 54 |
|
$form->setData($data); |
| 55 |
|
|
| 56 |
|
if (!$form->isValid()) { |
| 57 |
|
return new JsonModel( |
| 58 |
|
array( |
| 59 |
|
'valid' => false, |
| 60 |
|
'errors' => $form->getMessages(), |
| 61 |
|
) |
| 62 |
|
); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
$this->getServiceLocator()->get('repositories')->store($user); |
| 66 |
|
|
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 |
|
|