Log message #4019031

# At Username Text
# 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 !
# Apr 21st 2017, 11:23 admad You alias it in table registery
# Apr 21st 2017, 11:22 xety Hmm ok, but how to create an alias for the paginator ? Is there an option ?
# Apr 21st 2017, 11:22 admad My answer is just theoretical, never even paginated 2 different models on same page
# Apr 21st 2017, 11:21 hmic which makes me way more confident on my answer...
# Apr 21st 2017, 11:20 admad We basically said the same thing :)
# Apr 21st 2017, 11:20 hmic thanks for the backup admad :D
# Apr 21st 2017, 11:19 hmic so maybe you start with that first
# Apr 21st 2017, 11:19 admad I think the paginator component and now support paginating multiple models, so maybe you can paginate the same one twice by aliasing it
# Apr 21st 2017, 11:19 hmic my best bet: give the both paginators different table aliases to work with, so the params are seperatable from the url. it will still not work just out of the box, as with any other 2 paginators on the same page
# Apr 21st 2017, 11:18 hmic think of the url params the paginator uses... it will mess up without you changeing a lot
# Apr 21st 2017, 11:18 xety Ah, ok. Do you have any tips on how to do it please ?
# Apr 21st 2017, 11:17 hmic xety: well, possible. but not "nice"
# Apr 21st 2017, 11:15 xety Hello, It is possible to paginate 2 query from the same Model in the same view of course ?
# Apr 21st 2017, 11:14 dorxy ok, thanks @hmic :slightly_smiling_face:
# Apr 21st 2017, 11:14 dorxy and there’s the issue, the save gives errors on the new entities added (restrictions) and then my edit form gives errors because it cannot find C on B
# Apr 21st 2017, 11:14 hmic you dont need the plugin, just check in the getter for your virutal field if the data is loaded, if not TableRegisty::get('Table')->find() in the getter
# Apr 21st 2017, 11:13 admad They won't, you need to do a find again after saving
# Apr 21st 2017, 11:13 dorxy but I will check out the LazyLoad plugin @hmic, might be just what I need :slightly_smiling_face:
# Apr 21st 2017, 11:12 dorxy the old ones do
# Apr 21st 2017, 11:12 dorxy Yes I am, but when I then patch, en the array of A->b is extended, the ‘new’ entities in b do not have C
# Apr 21st 2017, 11:12 admad So contain it when doing find
# Apr 21st 2017, 11:12 hmic no, that had been for technofection
# Apr 21st 2017, 11:11 hmic dorxy: you can lazy load it (maybe)