You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In zend-apigility\zf-apigility-skeleton\vendor\zfcampus\zf-apigility\src\DbConnectedResource.php create function has no return data if the collection identifier field is not an auto increment value or there is no auto increment field in table.
In zend-apigility\zf-apigility-skeleton\vendor\zfcampus\zf-apigility\src\DbConnectedResource.php create function has no return data if the collection identifier field is not an auto increment value or there is no auto increment field in table.
In my case I have no auto increment field so $id = 0 and the fetch method return "no item found".
My solution:
//$id = $this->table->getLastInsertValue();
return $this->fetch($data[$this->identifierName]);
Originally posted by @Hoszi at zfcampus/zf-apigility-skeleton#158
The text was updated successfully, but these errors were encountered: