Log message #4161692

# At Username Text
# 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 ?
# Jul 24th 2018, 13:57 drollie On the second request, the server does not receive the cookie and am not sure if it is an issue with the cookie, or if I need to call $this->cookie before my second call, including the cookie which was returned by the server on the first request
# Jul 24th 2018, 13:56 drollie I make the first request and the server sets the cookie in the reseponse. I would like to make a second request, ensuring the cookie gets included like a browser would, and I am not certain if I need to call $this->cookie() or if it should do this automatically when I call $this->get a second time in the same test function.
# Jul 24th 2018, 13:55 drollie I make 2 $this->get requests in 1 function and wanted to know the behavior so I can dupllicate what a browser would do
# Jul 24th 2018, 13:55 neon1024 Two tests.
# Jul 24th 2018, 13:55 neon1024 SecondRequestWithoutCookie
# Jul 24th 2018, 13:55 neon1024 SecondRequestWithCookie
# Jul 24th 2018, 13:55 neon1024 No, new test.
# Jul 24th 2018, 13:54 drollie function
# Jul 24th 2018, 13:54 drollie no, same test
# Jul 24th 2018, 13:54 neon1024 As the cookie not being sent on a subsequent request is a new test
# Jul 24th 2018, 13:54 drollie the cookie does not seem to get set automatically when I make a second request...