Log message #4202843

# At Username Text
# 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
# Sep 12th 2019, 14:54 jh hm could it be that https://book.cakephp.org/3.0/en/development/errors.html is a bit full of lies
# Sep 12th 2019, 14:52 this.impetus (and FWIW I ought to have thought of that, but I learned cake before they existed and have reasonably recently returned, thanks guys)
# Sep 12th 2019, 14:49 this.impetus @admad view cells. that's perfect. thanks
# Sep 12th 2019, 14:48 this.impetus @admad It might really be just the models; there are a lot of HABTM relationships, otherwise it's really amoutns to formatting lines of the database into human-readable components
# Sep 12th 2019, 14:48 admad view cells
# Sep 12th 2019, 14:48 dereuromark This is called "dashboard" usually, but still only one controller, just with different data sources behind, e.g. different models fetching/processing data.
# Sep 12th 2019, 14:47 admad @this.impetus do you really need different controller or just compose a page using data from different models?
# Sep 12th 2019, 14:47 this.impetus No, interestingly; it's a static document, ultimately—it could have been a word document except for the constraint that it be assembled from a database, the context for that is that this is serving an academic, data-retrieval purpose.
# Sep 12th 2019, 14:46 ricksaccous I'm guessing you want a bunch of ajax requests?
# Sep 12th 2019, 14:45 this.impetus (and that's broad, I realize, but a broad answer is all I'm looking for, just a sketch of how cake intends to do this sort of thing)
# Sep 12th 2019, 14:44 this.impetus Making all those requests from within the document itself feels pretty uncake-like and is certainy unweidly. Any advice on a reasonable way to go about this?
# Sep 12th 2019, 14:43 this.impetus *it's also the primary focus of the site I'm building)
# Sep 12th 2019, 14:43 this.impetus Hi guys—I've a question about approach, more than method, here; I'm authoring a page that is supposed to thread together and format requests of about a dozen different controllers (this single page is going to be enormous but it
# Sep 12th 2019, 14:36 jbcharron yep, that's what I'll do :P Thanks for you help anyway :slightly_smiling_face:
# Sep 12th 2019, 14:29 ricksaccous where id = x and slug = x