Commit 37a18be1a55ec3adb23a466dcd192733745086c2

Authored by Alex Savenko
1 parent 983789a9

registration

Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
app/library/App/Controllers/UserController.php
... ... @@ -65,9 +65,7 @@ class UserController extends CrudResourceController
65 65 }
66 66  
67 67 $primaryKey = $this->getModelPrimaryKey();
68   - $responseData = $this->getFindData($newItem->id);
69   -
70   - die(var_dump($newItem));
  68 + $responseData = $this->getFindData($newItem->$primaryKey);
71 69  
72 70 $response = $this->getCreateResponse($responseData, $data);
73 71  
... ...