diff --git a/app/library/App/Controllers/UserController.php b/app/library/App/Controllers/UserController.php index 95c7182..72658bd 100755 --- a/app/library/App/Controllers/UserController.php +++ b/app/library/App/Controllers/UserController.php @@ -84,8 +84,8 @@ class UserController extends CrudResourceController $newItem->save(); - $primaryKey = $this->getModelPrimaryKey(); - $responseData = $this->getFindData($newItem->$primaryKey); + //$primaryKey = $this->getModelPrimaryKey(); + $responseData = $this->getFindData($newItem->id); $response = $this->getCreateResponse($responseData, $data); -- libgit2 0.21.4