Log message #4044878

# At Username Text
# Jun 27th 2017, 14:26 neon1024 Or is the parent’s errors array inclusive of the associated errors?
# Jun 27th 2017, 14:26 hmic the other half is RTFM basically
# Jun 27th 2017, 14:25 hmic at least most of neon1024 is rubber ducking :D
# Jun 27th 2017, 14:25 neon1024 If an associated entity fails validation, when the parent is validated, why doesn’t the association have an errors array?
# Jun 27th 2017, 14:22 jeremyharris most of this channel is rubber ducking, so not a problem :slightly_smiling_face:
# Jun 27th 2017, 14:21 jeremyharris :coffee: !
# Jun 27th 2017, 14:21 gutts_ got it, thanks!
# Jun 27th 2017, 14:21 gutts_ i think i was blind, didnt have my coffee and thought my pasting of 700 actually worked when infact the maxlength overrid that
# Jun 27th 2017, 14:21 jeremyharris are you sure it even POSTed 700 chars
# Jun 27th 2017, 14:21 neon1024 varchar(255)
# Jun 27th 2017, 14:20 jeremyharris yep, probably because if you’re using the formhelper, it will read the validation rules and add a maxlength to the html
# Jun 27th 2017, 14:20 hmic by your form already?
# Jun 27th 2017, 14:20 gutts_ i guess i meant to throw an error if its >255 so the user knows
# Jun 27th 2017, 14:20 gutts_ ah, got truncated to 255.. https://gist.github.com/anonymous/33959acd99428b65ebffdcdaeda9c9cf
# Jun 27th 2017, 14:19 hmic makes a huge difference in the cake world - on a query result e.g., well on "collections" actually, entites too, if they use hidden and/or virtual, sure ;-)
# Jun 27th 2017, 14:18 jeremyharris :)
# Jun 27th 2017, 14:17 jeremyharris debug vs pj :fire:
# Jun 27th 2017, 14:17 jeremyharris yeah, debug($entity) and paste that :slightly_smiling_face:
# Jun 27th 2017, 14:17 gutts_ oh, sec
# Jun 27th 2017, 14:17 hmic pj(newEntity(['name'=> 'very long string...']));
# Jun 27th 2017, 14:17 jeremyharris sorry, just paste the actual entity (what you get back after newEntity or patchEntity depending on what you’re doing) to gist.github.com
# Jun 27th 2017, 14:16 gutts_ what do you mean exactly? a ddl of the table and the validation?
# Jun 27th 2017, 14:15 jeremyharris can you gist your entity?
# Jun 27th 2017, 14:14 gutts_ by 'not work' it doesnt throw anything back for invalid in my validator
# Jun 27th 2017, 14:14 gutts_ why does ->maxLength('name', 255, 'Name may not exceed 255 characters in length.') not seem to work? i pasted in a 700 char string
# Jun 27th 2017, 13:22 neon1024 property.0.field, property.1.field, etc
# Jun 27th 2017, 13:21 neon1024 As long as the number is unique it shouldn’t cause the arrays to be overwritten
# Jun 27th 2017, 13:21 neon1024 Mine doesn’t, and I’m using that technique in my code as I type this ;)
# Jun 27th 2017, 13:16 NobbyNobbs there was an option of setting the fieldName to sth like 'images.' for cake 2.x, but 3 produces an error
# Jun 27th 2017, 13:16 NobbyNobbs I, at least, can't find a way to configure the form - securityhelper combo to work for multifile upload.
# Jun 27th 2017, 13:14 NobbyNobbs lat1no, you probably would be better off with ajax for multiple uploads
# Jun 27th 2017, 13:05 neon1024 My plugin supports multi upload, but not with a drag and drop interface
# Jun 27th 2017, 12:50 lat1no YES slackebot! I tried dropzone and it works. But how can it work with cake 3? I tried a lot of days...
# Jun 27th 2017, 12:45 dakota lat1no, croogo is using http://www.dropzonejs.com/ to handle drag+drop uploading
# Jun 27th 2017, 12:42 lat1no Thanks slackebot. I mean drag'ndrop multi upload ;-)
# Jun 27th 2017, 12:28 louis You could probably use one of these plugins https://github.com/FriendsOfCake/awesome-cakephp#files
# Jun 27th 2017, 12:25 lat1no thanks
# Jun 27th 2017, 12:25 lat1no Hi there. Is there any known solution multi uploading files in cake 3 with html5 data? div id ...
# Jun 27th 2017, 12:20 louis Ok i found it, sry for spaming
# Jun 27th 2017, 12:16 slackebot SubscriptionsTable” is it possible ?
# Jun 27th 2017, 12:16 louis Hi there, i’m trying to do something like this : ` $company = $this->Companies->get($id, [ ‘contain’ => [ ‘CompanyImages’, ‘Subscriptions.Plans’ => function ($q) { return $q->find(‘notFinish’); } ] ]); ` Obviously the ORM try to find custom finder in PlansTable but it’s implemented in SubscriptionsTable, how could i