Log message #4202858

# At Username Text
# Sep 12th 2019, 15:29 jh @jh throwing exceptions if table or entity classes are missing instead of falling back to generic/automagic tables/entities
# Sep 12th 2019, 15:28 jh https://gist.github.com/inoas/cfa9aee7a7509e8c66e53f57f48c5687
# Sep 12th 2019, 15:28 jh try this
# Sep 12th 2019, 15:28 admad @jh not sure what you mean
# Sep 12th 2019, 15:27 jh https://book.cakephp.org/3.0/en/orm/saving-data.html#saving-hasmany-associations
# Sep 12th 2019, 15:27 jh https://book.cakephp.org/3.0/en/orm/saving-data.html#saving-hasone-associations
# Sep 12th 2019, 15:26 jh it should be the association name
# Sep 12th 2019, 15:26 jotpe 'associated' => should be always plural, right?
# Sep 12th 2019, 15:26 jh @jotpe that call should only persist but not save
# Sep 12th 2019, 15:25 jh @admad did that make it into 404 for tables/entities (aka no automagic by default?)
# Sep 12th 2019, 15:25 jotpe it's not gonna work. Changed the request data, but nit persosted
# Sep 12th 2019, 15:25 jh https://gist.github.com/inoas/78f24f3024a449af3e2675ae61d439b7
# Sep 12th 2019, 15:25 jh place this at the end of your bootstrap.php- wihtout the php prologue
# Sep 12th 2019, 15:24 jh yes just a bad table/class name
# Sep 12th 2019, 15:24 ricksaccous emailaddresses is prob fine my bad
# Sep 12th 2019, 15:24 ricksaccous oh nvm
# Sep 12th 2019, 15:24 jh well depends on the table name
# Sep 12th 2019, 15:23 ricksaccous please actually look at the result of patch entity
# Sep 12th 2019, 15:23 jh for has one
# Sep 12th 2019, 15:23 ricksaccous and email adresses should be email_addresses
# Sep 12th 2019, 15:23 ricksaccous in the request data
# Sep 12th 2019, 15:23 ricksaccous names should be name
# Sep 12th 2019, 15:23 jh 2. there is missing the primary entity as far as it looks like
# Sep 12th 2019, 15:23 ricksaccous it isn't patching correctly
# Sep 12th 2019, 15:22 slackebot <jotpe>
# Sep 12th 2019, 15:22 jh 1. jotpe do you have associations defined correctly?
# Sep 12th 2019, 15:22 jotpe The associations in UsersTable are:
# Sep 12th 2019, 15:22 jotpe Anyone has a clue, why the associations here are not saved? The patched entity contains the fields, but they're not persisted to db.
# Sep 12th 2019, 15:21 slackebot <jotpe>
# Sep 12th 2019, 15:19 jh a trait for both... I want to separate some exceptions out into 401/403/404
# Sep 12th 2019, 15:18 jh yes I am going the same way as dereuromark
# Sep 12th 2019, 15:15 admad in 3.x if you need custom error handling just use your own middleware and do your customizations there
# Sep 12th 2019, 15:15 jh good... I will hack around for now
# Sep 12th 2019, 15:14 admad @jh FWIW in 4.x `ErrorHandlerMiddleware` uses `ErrorHandler`.
# Sep 12th 2019, 14:59 jh urgh ... so it is there ... twice?
# Sep 12th 2019, 14:59 jh https://github.com/dereuromark/cakephp-tools/blob/master/src/Error/ErrorHandler.php#L29-L30
# Sep 12th 2019, 14:57 jh can one of you confirm?
# Sep 12th 2019, 14:57 jh Seems there is old and new code living side by side
# Sep 12th 2019, 14:55 jh and well.. for 2 hours nothing worked and then I found that commeting out the ErrorHandlerMiddleware reenabled the error handler
# Sep 12th 2019, 14:55 jh I have created my own error handler to separate 404s
# Sep 12th 2019, 14:54 jh now that ErrorHandlerMiddleware is in effect https://book.cakephp.org/3.0/en/controllers/middleware.html#middleware-in-cakephp