Log message #4161727

# At Username Text
# Jul 24th 2018, 22:05 a.francazi can I apply a middleware only to a specific scope or can I also apply it to a specifig ROUTE? Lets say I want to activate csrf middleware only for my user delete action which is under the router $routes->connect('/delete/:id', ['controller' => 'Users', 'action' => 'delete'])
# Jul 24th 2018, 22:01 Slown everybody is asleep or what ?
# Jul 24th 2018, 22:01 Slown guys, anyone ?
# Jul 24th 2018, 21:59 Slown what can you said about that ?
# Jul 24th 2018, 21:59 Slown I'm hesitating between cake and symfony ?
# Jul 24th 2018, 21:59 Slown I need your help
# Jul 24th 2018, 21:59 Slown Hello guys
# Jul 24th 2018, 21:33 ricksaccous I'll have to take a look at this later
# Jul 24th 2018, 21:22 ricksaccous does append strategy not let you change join data?
# Jul 24th 2018, 21:22 ricksaccous when I finally get around to saving nothing happens
# Jul 24th 2018, 21:22 ricksaccous I am first grabbing the entity via a query, then I'm changing the _joinData, even debugged it and the property I changed is marked as dirty
# Jul 24th 2018, 21:21 ricksaccous I'm having trouble saving join data
# Jul 24th 2018, 20:52 dwms ?
# Jul 24th 2018, 20:52 dwms How to return included in object after edit in response
# Jul 24th 2018, 20:52 dwms Someone uses crud-json-api??
# Jul 24th 2018, 18:12 dereuromark you might not have disabled the config as documented
# Jul 24th 2018, 18:05 aro why am i getting deprecation warnings on using beforeRedirect when I am not using it?
# Jul 24th 2018, 15:29 neon1024 Seems that setting a `LEFT JOIN` in my associations achieves what I need as I’m lucky they are not many associations :slightly_smiling_face:
# Jul 24th 2018, 15:18 drollie i will investigate those
# Jul 24th 2018, 15:17 neon1024 Could be that you’re checking the data after it’s been emptied somewhere already
# Jul 24th 2018, 15:17 neon1024 Could be that that you’ve posted to a different url than you think
# Jul 24th 2018, 15:16 neon1024 Might be that you should be using $this->getRequest()->getData() if on Cake 3
# Jul 24th 2018, 15:16 neon1024 Might be that it’s empty
# Jul 24th 2018, 15:16 neon1024 drollie, Might be a PUT
# Jul 24th 2018, 15:16 neon1024 So will be returning json
# Jul 24th 2018, 15:16 drollie Any reason why $this->request->data() would be empty even though I have passed POST content?
# Jul 24th 2018, 15:16 neon1024 I don’t think I can really lazy load the optional association as the query is being executed via ajax call
# Jul 24th 2018, 15:15 neon1024 I have a belongsTo and hasMany, I’d like to get the parents, obviously, and optionally the child associations, if there is one
# Jul 24th 2018, 15:12 neon1024 Did anyone come up with a better way than an inverted notMatching yet to optionally get associations?
# Jul 24th 2018, 14:31 neon1024 @turkles Could be lots of things. 1) Bad request data array format 2) Bad form helper use, leading to incorrectly formatted request array 3) A bug in the association setup 4) Does the entity patch correctly? 5) Does the `$entity->getErrors()` show any validation or rule errors? 6) Are you looking in the right db table? 7) Are you making changes to the parent entity before saving? If it’s not dirty no changes will be persisted
# Jul 24th 2018, 14:30 lubos Ta
# Jul 24th 2018, 14:30 lubos Just checking the code and you are right, no events....
# Jul 24th 2018, 14:29 neon1024 Or more accurately, the `dispatch()` function isn’t called in the class
# Jul 24th 2018, 14:28 neon1024 No, the email class has no events.
# Jul 24th 2018, 14:28 lubos @neon1024 I know I can :slightly_smiling_face: just asking ... :slightly_smiling_face:
# Jul 24th 2018, 14:27 neon1024 @lubos What is in the book is all there is. You can create your own though
# Jul 24th 2018, 14:27 lubos I mean list of implemented events, in this case with Email / Mailer classes
# Jul 24th 2018, 14:26 itmpls @lubos you mean the order?
# Jul 24th 2018, 14:25 lubos Is there any doc where I can find all events used in cake core? I mean i know Model, Controller, View events such as afterSave, afterRenderFile, ... but are there any others I could use like Email.afterSend?
# Jul 24th 2018, 14:14 turkles I have an association which uses through. I have set up my data which looks great before the save(), and if I debug the save() itself I can see the data I am trying to save. But my joining table is still empty and I see no errors - anyone have some ideas of what I can look for ?
# Jul 24th 2018, 13:58 drollie How do I see the raw request that gets sent after I call $this->get ?