diff --git a/app/library/App/Controllers/UserController.php b/app/library/App/Controllers/UserController.php index faaf2ff..5cefa8c 100755 --- a/app/library/App/Controllers/UserController.php +++ b/app/library/App/Controllers/UserController.php @@ -58,14 +58,19 @@ class UserController extends CrudResourceController $item = $this->createModelInstance(); + $item->save(); + die($item->id); + + $newItem = $this->createItem($item, $data); if (!$newItem) { return $this->onCreateFailed($item, $data); } - $last_id = $newItem->getWriteConnection()->lastInsertId(); - $responseData = $this->getFindData($last_id); + + //$last_id = $newItem->getWriteConnection()->lastInsertId(); + //$responseData = $this->getFindData($last_id); $response = $this->getCreateResponse($responseData, $data); -- libgit2 0.21.4