Log message #3881788

# At Username Text
# May 27th 2016, 19:23 ionas I could take some more card and board games to come down from all the hacking :P â?¦. but the the social climate is great, the workshops were nice (though I will have to re-do the one on collections and toy a lot more to get more into it)
# May 27th 2016, 19:22 marlinc How's it going so far ionas?
# May 27th 2016, 19:20 marlinc I wish I could come now but I can't unfortunately..
# May 27th 2016, 19:19 marlinc I'm coming tomorrow morning :)
# May 27th 2016, 19:19 ionas admad marlinc you guys are missing.
# May 27th 2016, 19:19 marlinc My train just went by the hotel were CakeFest is being held :p
# May 27th 2016, 19:19 ionas lets see if github will detect that
# May 27th 2016, 19:18 admad s/and/a
# May 27th 2016, 19:18 admad You need to reopen and new open which targets 3.next
# May 27th 2016, 19:17 ionas how to change where a PR goes? https://github.com/cakephp/cakephp/pull/8897#issuecomment-222184715
# May 27th 2016, 16:52 alanderouen_ enjoy the weekend :)
# May 27th 2016, 16:41 mrcake hey all, anyone done a good amount of work w/ friendsofcake/crud
# May 27th 2016, 16:30 styks1987 I want a json error
# May 27th 2016, 16:30 styks1987 I am sending accepts header with application/json and serializing data but I still get the php html not authorized error
# May 27th 2016, 16:29 nemmons thanks.
# May 27th 2016, 16:29 nemmons but now i see you're right
# May 27th 2016, 16:29 nemmons I didn't read that as an exclusive condition
# May 27th 2016, 16:29 ypnos and this chapter http://book.cakephp.org/3.0/en/orm/validation.html#validation-vs-application-rules
# May 27th 2016, 16:29 nemmons ah.
# May 27th 2016, 16:28 ypnos read the first sentence here http://book.cakephp.org/3.0/en/orm/validation.html#applying-application-rules
# May 27th 2016, 16:28 ypnos no during save only rules are checked
# May 27th 2016, 16:27 nemmons actually, maybe my statement above was wrong. since validator() returns the model's default validator, i'm then attaching a new validation to the default validator. i think that would be triggered by a save
# May 27th 2016, 16:27 ypnos let me see maybe I can also learn something new
# May 27th 2016, 16:27 nemmons http://book.cakephp.org/3.0/en/orm/validation.html#validating-data-before-building-entities i mean
# May 27th 2016, 16:27 nemmons @ypnos thanks but i think that might be contradicted by http://book.cakephp.org/3.0/en/orm/validation.html
# May 27th 2016, 16:27 ypnos if you use patchEntity or pass data in newEntity, default validation should run
# May 27th 2016, 16:26 ypnos nemmons validation takes place during mass-assignment. if you create an empty Entity and then fill some values by-hand it will never kick in (afaik)
# May 27th 2016, 16:25 nemmons if, in a controller, i call `'$this->Table->validator()->notEmpty('some_field');` and then attempt to create and save a new entity without some_field, that won't actually matter, right? because i didn't pass the name of a validator in during my newEntity() call
# May 27th 2016, 16:24 nemmons just to make sure i understand validation in 3.x
# May 27th 2016, 16:20 ypnos lol scrap it
# May 27th 2016, 16:18 max-86666 for the record, ACL are handled the same way :/
# May 27th 2016, 16:17 max-86666 at some point i really like to kill him, i have a lot of weird table in there :)
# May 27th 2016, 16:16 ypnos I'd rather kill the database designer though.. don't forget that the roundtrip etc. you are imposing through this is a real performance killer
# May 27th 2016, 16:15 max-86666 thx ypnos, that seems perfect
# May 27th 2016, 16:15 ypnos In my case I do this for Entities created from a Form that lack the contains because the foreign keys were patched-in after creating the entity
# May 27th 2016, 16:14 ypnos max-86666: you could rewrite the loadContain method to do the fetch
# May 27th 2016, 16:13 ypnos max-86666: this is some code I am having https://gist.github.com/ypnos-web/f2aeb3d7744585fa33c78a1edcb60007
# May 27th 2016, 16:13 styks1987 ajaxLogin needs to be a string? The docs are unclear on how to use isAuthorized with ajax requests that need to respond with 403 instead of the redirect
# May 27th 2016, 16:11 max-86666 i'll try the lsazy load from Entity, thx ypnos
# May 27th 2016, 16:11 sab-cakefest ACTION *brainmelt*
# May 27th 2016, 16:11 max-86666 oh afterfind removed in cake 3 ^^