# |
Apr 21st 2017, 13:10 |
juniorionut |
@dereuromark , no everything is in place. As strange as it sounds (to me) i think that i have found the culprit - i loaded some models inside some components in the initialize method. What that has to do with the footprit i don't know, but need to test to be 100% sure |
# |
Apr 21st 2017, 13:09 |
joop |
but why this does not work? |
# |
Apr 21st 2017, 13:06 |
joop |
but its allways let to save the same values |
# |
Apr 21st 2017, 13:06 |
joop |
$rules->add($rules->isUnique(['field1','field2','field3'])) |
# |
Apr 21st 2017, 13:06 |
dereuromark |
use scope option |
# |
Apr 21st 2017, 13:05 |
joop |
i tried to write costum buildRules by |
# |
Apr 21st 2017, 13:05 |
joop |
i am just stuck with validation for 3 fields uniques |
# |
Apr 21st 2017, 13:05 |
joop |
hello there |
# |
Apr 21st 2017, 13:04 |
technofection |
I am still fighting saving hasMany, no success yet :( @dereuromark |
# |
Apr 21st 2017, 13:00 |
dereuromark |
juniorionut |
# |
Apr 21st 2017, 12:59 |
technofection |
was that for me @dereuromark |
# |
Apr 21st 2017, 12:47 |
juniorionut |
Deleting all code from Orders table does not help... |
# |
Apr 21st 2017, 12:39 |
dereuromark |
that usually is the number one beginners mistake regarding overwriting of callbacks |
# |
Apr 21st 2017, 12:39 |
dereuromark |
did you forget to call parent:: ? |
# |
Apr 21st 2017, 12:39 |
juniorionut |
I have figured something else is the meantime - i get the plugin loaded in some modles, while in others i do not - https://pastebin.com/Vgwh8wMi |
# |
Apr 21st 2017, 12:30 |
technofection |
I have copied the Entity Before Save and After Save... Can you please have a look? |
# |
Apr 21st 2017, 12:30 |
technofection |
https://gist.github.com/technofection/9c4917f3668b72d3aa2823e12b99d7cb |
# |
Apr 21st 2017, 12:30 |
technofection |
Hi @dereuromark Seems still I can't fix it.. |
# |
Apr 21st 2017, 12:17 |
juniorionut |
i have looked in my code and i do not have model loads inside intialise method |
# |
Apr 21st 2017, 12:10 |
juniorionut |
Any ideas why this is happening? https://github.com/UseMuffin/Footprint/issues/46 ? Thanks! |
# |
Apr 21st 2017, 12:07 |
slackebot |
Action: admad hi5s hmic |
# |
Apr 21st 2017, 12:06 |
xety |
Thanks @hmic and @admad It work perfectly. |
# |
Apr 21st 2017, 12:05 |
dereuromark |
that might be. always stay on top of the latest minor |
# |
Apr 21st 2017, 12:04 |
vemavir |
note that this project uses quite old version of cakePhp, 2.7 if I recall correctly. So it may a former bug if it is one. :slightly_smiling_face: |
# |
Apr 21st 2017, 12:02 |
dereuromark |
you could try the verbose array declaration for now |
# |
Apr 21st 2017, 12:01 |
dereuromark |
vemavir: interesting, that sounds like it is a bug, it shouldnt auto convert those strings probably. |
# |
Apr 21st 2017, 12:01 |
technofection |
I am here again.. Seems, cannot get it done.. I am posting the entity print_r() on gist.. Please have a look, may be you can catch the error.. My brain got hanged :( |
# |
Apr 21st 2017, 12:00 |
technofection |
Hi @hmic |
# |
Apr 21st 2017, 11:59 |
vemavir |
https://gist.github.com/Nukasev/9e154e09ce92627b89ceb8a2673975bd |
# |
Apr 21st 2017, 11:45 |
vemavir |
Hello! I´m having trouble with formhelper and select-input options. I pass an associative array to the options-key, yet formhelper outputs the select options with numerical values, as if the array had numeric keys. |
# |
Apr 21st 2017, 11:43 |
dereuromark |
charolastra: https://book.cakephp.org/3.0/en/controllers/components/authentication.html#identifying-users-and-logging-them-in |
# |
Apr 21st 2017, 11:40 |
admad |
It doesn't do any actual authentication |
# |
Apr 21st 2017, 11:40 |
charolastra |
hmm, but it seems that it authenticates with just the ID |
# |
Apr 21st 2017, 11:39 |
admad |
charolastra: no, setUser () just sets whatever you pass it to session, that's it |
# |
Apr 21st 2017, 11:31 |
charolastra |
shouldn't Auth->user() always return the full user dataset? cause i did a Auth->setUser() with just an ID and now user() also just returns the ID |
# |
Apr 21st 2017, 11:31 |
julez |
e.g. i want to find all BlogPosts, which have a special value in associated Comments Model |
# |
Apr 21st 2017, 11:30 |
julez |
is there a possibility to use conditions in associated models in cake2.x |
# |
Apr 21st 2017, 11:29 |
julez |
hello |
# |
Apr 21st 2017, 11:24 |
hmic |
admad: same with me :O |
# |
Apr 21st 2017, 11:24 |
admad |
Then read manual for how to paginate 2 models together |
# |
Apr 21st 2017, 11:23 |
xety |
Ahhh yeah i see, thanks ! |