Log message #4044989

# At Username Text
# Jun 27th 2017, 17:27 chris-andre I don't write files anywhere :S
# Jun 27th 2017, 17:27 chris-andre A lot of files..
# Jun 27th 2017, 17:26 chris-andre Each "code" is the filename.
# Jun 27th 2017, 17:26 savant sounds like you wrote a file
# Jun 27th 2017, 17:26 chris-andre Wft. Anyone experienced something like this; I suddenly have these files in my app root: `0,`, `1,`, `20.06.2017,`, `3],`, `4],`, `[`, `[group_id],`, `[timeart_id`, `UTC,`.
# Jun 27th 2017, 17:11 genellern 13.50 == 13.5
# Jun 27th 2017, 16:52 jotpe Cake 2
# Jun 27th 2017, 16:52 jotpe I'm using Cake 22
# Jun 27th 2017, 16:52 jotpe for some reasons the data does not pass the validation, any ideas?
# Jun 27th 2017, 16:52 jotpe hello! i have this validation rule: 'rule' => array('decimal', 2), and want to validate this data: [amount_owed] => 13.50
# Jun 27th 2017, 16:39 savant again, if you want to nest the articles, the easiest way is to make the find from the Comments table.
# Jun 27th 2017, 16:39 savant I wouldnt try to do this in sql
# Jun 27th 2017, 16:39 savant you can screw around with the Collections class maybe
# Jun 27th 2017, 16:39 gutts_ so there's no way to do it? like using combine?
# Jun 27th 2017, 16:38 savant you need to do the find from the Comments table
# Jun 27th 2017, 16:37 gutts_ ex if i have an Articles Model and i have a finder for comments with $this->find()->contain(['Comments']) how do I reverse the structure so comments are 1st level that nest articles?
# Jun 27th 2017, 16:37 gutts_ in a custom finder, if i'm containing a table, how can i reverse the structure so that the containing table is the first level?
# Jun 27th 2017, 16:02 neon1024 Heh, no doubt!
# Jun 27th 2017, 16:02 jeremyharris hah, tomorrow it will probably just work :slightly_smiling_face:
# Jun 27th 2017, 16:02 neon1024 It can be a tomorrow problem, at it’s gone 5pm :slightly_smiling_face:
# Jun 27th 2017, 16:01 neon1024 The rule is run as I can change the error validation message and it’s respected in the entity
# Jun 27th 2017, 16:01 neon1024 But does add an error message in the entity
# Jun 27th 2017, 16:00 neon1024 Never gets to there
# Jun 27th 2017, 16:00 neon1024 `->requirePresence('package_id', function ($context) { var_dump($context);exit;`
# Jun 27th 2017, 16:00 jeremyharris shortcut for debug then die
# Jun 27th 2017, 16:00 neon1024 I have no idea what dd() is
# Jun 27th 2017, 15:54 jeremyharris I’ve debugged it before okay. are you sure you’re satisfying the `when` condition? can always try `dd()`
# Jun 27th 2017, 15:49 neon1024 I have no idea how $context is created here, https://github.com/cakephp/cakephp/blob/master/src/Validation/Validator.php#L703
# Jun 27th 2017, 15:47 neon1024 Where can I see the $context from the validation methods in the core? I can’t seem to var_dump() it in my ‘when’ / ‘mode’ callback methods
# Jun 27th 2017, 15:39 jeremyharris yep, thanks for working on a test case :slightly_smiling_face: will help a lot of other people if it is indeed a bug
# Jun 27th 2017, 15:38 elboletaire thanks for the time buddies :slightly_smiling_face:
# Jun 27th 2017, 15:38 elboletaire so, I'll try to do that... create a project to reproduce this issue (and others I've found related to this)
# Jun 27th 2017, 15:37 elboletaire it's a very huge project, but I've tried disabling all the behaviors from both tables without any change on the save process...
# Jun 27th 2017, 15:37 jeremyharris that’s probably a good idea. if you can create a failing test case I’d be happy to work on a fix
# Jun 27th 2017, 15:37 jeremyharris yeah
# Jun 27th 2017, 15:37 jeremyharris is there anything unconventional about your table setup
# Jun 27th 2017, 15:37 elboletaire I'll try to create a really simple project with all these entities, and try to reproduce the steps there, so I can open an issue
# Jun 27th 2017, 15:36 jeremyharris oy
# Jun 27th 2017, 15:36 elboletaire reverse doesn't work either...
# Jun 27th 2017, 15:36 jeremyharris either way, it shouldn’t return true if it’s not saving, so there might be a bug somwehere
# Jun 27th 2017, 15:36 elboletaire I'm trying..