From 9b20963123ed092cc9df916ebfa2d73cf82e960c Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 8 Feb 2017 20:39:50 +0200 Subject: [PATCH] test --- app/library/App/Controllers/UserController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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