danic21 / restifydb

Expose your databases as REST web services in minutes
GNU Affero General Public License v3.0
5 stars 2 forks source link

Request POST, PUT and DELETE return 200, but the record was not saved or changed #1

Closed thiagosilr closed 3 years ago

thiagosilr commented 3 years ago

When executing the POST, PUT and DELETE actions, I was receiving status code 200, but the record was not saved or changed.

Server Features:

I found that in the "/lib/Zend/Db/TableGateway/AbstractTableGateway.php" file, when trying to read the constants:

They are returning blank.

As I do not have a great knowledge of the Zend library and its libraries I put the fixed values ​​and managed to perform the actions of PUT, POST and DELETE.

The values ​​I used are in the "that are in the file "lib/Zend/Db/TableGateway/Feature/EventFeature.php"