Log message #4170803

# At Username Text
# Oct 8th 2018, 14:44 ricksaccous good luck
# Oct 8th 2018, 14:44 ricksaccous that's horrible
# Oct 8th 2018, 14:44 ricksaccous oh
# Oct 8th 2018, 14:44 martin did work till a few hours ago, thats why I don’t understand it :S
# Oct 8th 2018, 14:44 martin yes
# Oct 8th 2018, 14:42 ricksaccous have you read the server configuration set up instructions for cakephp3?
# Oct 8th 2018, 14:42 ricksaccous apache or nginx?
# Oct 8th 2018, 14:42 ricksaccous what are you using
# Oct 8th 2018, 14:41 martin nothing in logs already tried to enable debug and logging to be sure, but nothing, keeps loading
# Oct 8th 2018, 14:40 ricksaccous @martin have you checked the server logs, apache, and/or nginx?
# Oct 8th 2018, 14:17 martin and I don’t see any errors, only that my php-fpm is full with handling the requests
# Oct 8th 2018, 14:16 martin other project works fine. but this projects fail, even the old releases what did run before without any problems
# Oct 8th 2018, 14:16 martin and I’m clueless now what can be the reason,
# Oct 8th 2018, 14:15 martin I’ve on production server that it does not handle requests anymore with cakephp 3.6. when I call a script in webroot directory it works fine, but index.php no response
# Oct 8th 2018, 13:57 ricksaccous no problem ;)
# Oct 8th 2018, 13:57 rrd564 @ricksaccous thanks. That was it. Now my problem solved. :slightly_smiling_face:
# Oct 8th 2018, 13:47 ricksaccous @rrd it's kind of weird how it works
# Oct 8th 2018, 13:47 rrd564 ok I iwll try it
# Oct 8th 2018, 13:47 ricksaccous so you prob need two different query objects of the same query, maybe
# Oct 8th 2018, 13:46 ricksaccous if that makes sense
# Oct 8th 2018, 13:46 ricksaccous it's going to pass the query by reference
# Oct 8th 2018, 13:46 ricksaccous and do a collection on it
# Oct 8th 2018, 13:46 ricksaccous basically any time you call the base query object
# Oct 8th 2018, 13:46 ricksaccous hmmm
# Oct 8th 2018, 13:46 ricksaccous passed the other way, lol
# Oct 8th 2018, 13:45 ricksaccous so i think queries are passed by reference, but once you get out of the query it would then have to be uhhhh
# Oct 8th 2018, 13:43 rrd564 @ricksaccous https://pastebin.com/GCw8Dbd9
# Oct 8th 2018, 13:37 ricksaccous @rrd it's hard to understand your implementation and why what's happening is happening without seeing some code
# Oct 8th 2018, 13:36 rrd564 I need an entity in 2 different collection, but I want to change one property in one collection. As they contains the same entity it changes in the other one. How to prevent this?
# Oct 8th 2018, 13:36 madbbb @ricksaccous thank you, both of your suggestions work. I forgot to put 'CombinedOrders.name' in select() as well.Now everything works as expected.
# Oct 8th 2018, 13:21 ricksaccous well, same principle
# Oct 8th 2018, 13:20 madbbb sorry, it's not CombinedRecords its CombinedOrders
# Oct 8th 2018, 13:20 ricksaccous it would be 'Trackings' => ['queryBuilder' => function(){}, 'CombinedRecords'
# Oct 8th 2018, 13:19 ricksaccous so instead of 'Trackings' => function
# Oct 8th 2018, 13:19 ricksaccous i believe but that query function in a queryBuilder key of the array in combined
# Oct 8th 2018, 13:19 ricksaccous or you could
# Oct 8th 2018, 13:19 ricksaccous $q->contain(['CombinedRecords'])
# Oct 8th 2018, 13:18 ricksaccous you can put it directly in the query
# Oct 8th 2018, 13:17 madbbb Hello. I have a contain condition in my query, but I don't understand how to get associated record here. I need to get Trackings.CombinedRecords association. Where should I put contain(['CombinedRecords ']). Tried to insert it everywhere with no luck
# Oct 8th 2018, 12:33 spencdev For most, yeah.
# Oct 8th 2018, 12:33 dereuromark even though I find this pretty obvious :P