Commit 9b20963123ed092cc9df916ebfa2d73cf82e960c
1 parent
761fa362
test
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/UserController.php
@@ -84,8 +84,8 @@ class UserController extends CrudResourceController | @@ -84,8 +84,8 @@ class UserController extends CrudResourceController | ||
84 | 84 | ||
85 | $newItem->save(); | 85 | $newItem->save(); |
86 | 86 | ||
87 | - $primaryKey = $this->getModelPrimaryKey(); | ||
88 | - $responseData = $this->getFindData($newItem->$primaryKey); | 87 | + //$primaryKey = $this->getModelPrimaryKey(); |
88 | + $responseData = $this->getFindData($newItem->id); | ||
89 | 89 | ||
90 | $response = $this->getCreateResponse($responseData, $data); | 90 | $response = $this->getCreateResponse($responseData, $data); |
91 | 91 |