Log message #4017500

# At Username Text
# Apr 19th 2017, 10:47 hmic why do you contain and matching teams btw?
# Apr 19th 2017, 10:47 hmic maybe the matching associated with it?!
# Apr 19th 2017, 10:46 hmic in this case the order should but work
# Apr 19th 2017, 10:45 Neon1024 No, turns out it’s a hasMany, so it’s doing two queries rather than joining
# Apr 19th 2017, 10:42 hmic Neon1024, order problem fixed?
# Apr 19th 2017, 10:41 joop but i can not acces the data any other way
# Apr 19th 2017, 10:41 joop the query is returning fine as showing the toArray method
# Apr 19th 2017, 10:41 hmic just use crud and crudview and like 2 days of time and i get any 1.2 app would be rewritten *fg*
# Apr 19th 2017, 10:41 Neon1024 Doubt it would be anyones choice!
# Apr 19th 2017, 10:41 Neon1024 No, I imagine not
# Apr 19th 2017, 10:41 cobra-the-joker Neon1024: not my choice :(
# Apr 19th 2017, 10:40 hmic the app cannot do much anyways, so rewrite to 3.4 would be the thing :D
# Apr 19th 2017, 10:40 Neon1024 Upgrade to 1.3 ? :p
# Apr 19th 2017, 10:39 dereuromark my memory gives up on my after ~3 years, but 10+ years is too much I am afraid
# Apr 19th 2017, 10:39 Neon1024 Appropriate nickname I think cobra-the-joker ;)
# Apr 19th 2017, 10:39 dereuromark cobra-the-joker: even 10+ veterans like me dont know anything about that ancient framework version anymore :S
# Apr 19th 2017, 10:39 hmic cobra-the-joker, can you repeat that version number again please?
# Apr 19th 2017, 10:37 joop but its seems there no wrong with the query
# Apr 19th 2017, 10:36 cobra-the-joker Hey guys , i am having a problem with cake 1.2 ... i use paginate on a model .... but it doesn't return with it the hasOne element that i set in the controller , any help ?
# Apr 19th 2017, 10:36 Neon1024 Class autoloading != Loading a component
# Apr 19th 2017, 10:35 Neon1024 See above.
# Apr 19th 2017, 10:35 joop use Cake\Controller\Component\AuthComponent;
# Apr 19th 2017, 10:35 joop i inserted the AuthComponent
# Apr 19th 2017, 10:35 Neon1024 https://book.cakephp.org/3.0/en/controllers/components/authentication.html
# Apr 19th 2017, 10:35 Neon1024 joop: Well I can’t find an example in the book, but you’ll need a $this->loadComponent(‘Auth’, $myAuthConfig); somewhere in your controller, usually AppController::initialize
# Apr 19th 2017, 10:34 hmic add the first_name to the order in line 31 i guess
# Apr 19th 2017, 10:34 Neon1024 hmic: Ah yes, so because it’s a join, I’ll need to order the whole query! Good idea
# Apr 19th 2017, 10:33 hmic Neon1024, you order by date below
# Apr 19th 2017, 10:33 Neon1024 https://book.cakephp.org/3.0/en/controllers/components.html#using-components
# Apr 19th 2017, 10:33 Neon1024 Then the AuthComponent is not loaded
# Apr 19th 2017, 10:32 joop https://pastebin.com/bgfADqxc
# Apr 19th 2017, 10:31 Neon1024 So anyone know why my order doesn’t work? https://pastebin.com/iTMcJAwW -> ln 11
# Apr 19th 2017, 10:30 Neon1024 Which would cause that kind of error
# Apr 19th 2017, 10:29 Neon1024 Show use the code, as it sounds like $entity->user()
# Apr 19th 2017, 10:29 joop triing to acces entity's data but keep geeting call to a member function user
# Apr 19th 2017, 10:22 Neon1024 It’s possible to order a contained association right? Strange, as I’ve added an order() to my contain closure, but it’s not making it to my SQL
# Apr 19th 2017, 10:19 matvey151 Hello everybody!
# Apr 19th 2017, 09:43 Nick5 So its just removing it and re-populating on the save method
# Apr 19th 2017, 09:43 Nick5 It's cakephp2 :( I have the cache working when it calls the queriesfor the page
# Apr 19th 2017, 09:42 theaxiom or an afterSave or something
# Apr 19th 2017, 09:41 theaxiom you could use some sort of message queue to perform the call via console to re-cache the data, etc