Commit c7a1a5b383a5e58975aef54ca257396a18d8059f
1 parent
c9f9c602
test
Showing
1 changed file
with
1 additions
and
7 deletions
Show diff stats
app/library/App/Controllers/UserController.php
... | ... | @@ -82,13 +82,12 @@ class UserController extends CrudResourceController |
82 | 82 | return $this->onCreateFailed($newItem, $data); |
83 | 83 | } |
84 | 84 | |
85 | - | |
86 | 85 | $newItem->save(); |
87 | 86 | |
88 | 87 | $last_id = $newItem->getWriteConnection()->lastInsertId(); |
89 | 88 | |
90 | - return var_dump($last_id); | |
91 | 89 | //$primaryKey = $this->getModelPrimaryKey(); |
90 | + | |
92 | 91 | $responseData = $this->getFindData($last_id); |
93 | 92 | $response = $this->getCreateResponse($responseData, $data); |
94 | 93 | |
... | ... | @@ -98,11 +97,6 @@ class UserController extends CrudResourceController |
98 | 97 | |
99 | 98 | return $response; |
100 | 99 | |
101 | -// $user = new User(); | |
102 | -// $user->name = $data['name']; | |
103 | -// $user->pass = $data['pass']; | |
104 | -// $user->save(); | |
105 | - | |
106 | 100 | } |
107 | 101 | |
108 | 102 | protected function transformPostDataValue($key, $value, $data) | ... | ... |