# |
Jun 27th 2017, 14:49 |
gutts_ |
or should I just revert back to start/end |
# |
Jun 27th 2017, 14:49 |
gutts_ |
does cake not escape/wrap `s around columns? if have 'from' and 'to' as column names, the update/insert doesnt work.. sql log has SET from = '2017-06-27'. is there some escaping setting for this? |
# |
Jun 27th 2017, 14:35 |
admad |
bingo! x) |
# |
Jun 27th 2017, 14:35 |
jeremyharris |
I’m guessing “mad” :) |
# |
Jun 27th 2017, 14:34 |
neon1024 |
Heh |
# |
Jun 27th 2017, 14:34 |
jeremyharris |
how does that make you FEEL, @admad |
# |
Jun 27th 2017, 14:34 |
admad |
this open source tech support, not therapy session with your shrink :P |
# |
Jun 27th 2017, 14:32 |
jeremyharris |
talk it out, friend |
# |
Jun 27th 2017, 14:31 |
neon1024 |
Yes, I haven’t got ‘on’ => ‘create’ perhaps |
# |
Jun 27th 2017, 14:30 |
neon1024 |
Er, my association is validating the parent foreign key I mean |
# |
Jun 27th 2017, 14:30 |
neon1024 |
Could it be that my associations requires the foreign key, but it’s an add, so there isn’t one |
# |
Jun 27th 2017, 14:28 |
neon1024 |
No, but that’s a good idea :slightly_smiling_face: |
# |
Jun 27th 2017, 14:27 |
jeremyharris |
@neon1024 it most certainly should, have you tried just creating the associated entity to see if it validates |
# |
Jun 27th 2017, 14:27 |
jeremyharris |
heh |
# |
Jun 27th 2017, 14:26 |
hmic |
it's really funny sometimes, as you type the answer in the same sentence you are typing the question... |
# |
Jun 27th 2017, 14:26 |
neon1024 |
Even more so today, only me and one designer in today |
# |
Jun 27th 2017, 14:26 |
hmic |
remaining 30% is off topic anyways :P |
# |
Jun 27th 2017, 14:26 |
neon1024 |
@hmic Too true lol! |
# |
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? |