Log message #4019065

# At Username Text
# Apr 21st 2017, 13:17 nemmons Yeah i had that same problem like a year ago. I wish i had known you were loading models in the component, i would have told you that was an issue =(
# Apr 21st 2017, 13:16 admad make a PR to add note in readme
# Apr 21st 2017, 13:16 Neon1024 If Chronos extends DateTime, would $chronos instance of DateTime be true? I think it’d be false right? Despite it being a child class
# Apr 21st 2017, 13:16 nemmons Oh, man, that was the problem?
# Apr 21st 2017, 13:16 juniorionut @admad , makes sense, i consider that this should be specified in the readme as others will lose interest quickly. I have spent alot of time untill i reached this point...
# Apr 21st 2017, 13:15 admad @juniorionut if any model get's loaded through controller's initialize() it won't get the footprint listener get attached to it.
# Apr 21st 2017, 13:13 joop i have found my issue there is a field called parent_id it refer back to the same model
# Apr 21st 2017, 13:13 juniorionut beats me why...
# Apr 21st 2017, 13:13 juniorionut And it seems that ``` $this->belongsToMany('AuthAcl.Groups', [ 'propertyName' => 'Group', 'foreignKey' => 'user_id', 'targetForeignKey' => 'group_id', 'joinTable' => 'users_groups' ]); ``` also stops the plugin from working inside the "groups" model
# Apr 21st 2017, 13:11 juniorionut So-called issue
# Apr 21st 2017, 13:11 juniorionut I have started to remove all code from controllers to isolate the issue and found the issue in a component
# 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.