Log message #4170815

# At Username Text
# Oct 8th 2018, 15:07 ricksaccous because while i do want some replace-like behavior sometimes on this project there always seems to be some quirk to it
# Oct 8th 2018, 15:06 ricksaccous I'd love for a more robust replace strategy
# Oct 8th 2018, 14:56 ricksaccous in saveStrategy replace, would it be possible to set replace conditions or something?
# Oct 8th 2018, 14:54 ricksaccous ok
# Oct 8th 2018, 14:54 martin no, only in before :(
# Oct 8th 2018, 14:53 ricksaccous but not in aftersave huh
# Oct 8th 2018, 14:53 martin and the fields are dirty that are changed
# Oct 8th 2018, 14:53 martin In the beforesave you have the orignal data
# Oct 8th 2018, 14:52 ricksaccous actually i want to compare old data with new data
# Oct 8th 2018, 14:52 ricksaccous is it possible to compare request data with data actually saved?
# Oct 8th 2018, 14:51 ricksaccous in cakephp3 aftersave
# Oct 8th 2018, 14:45 martin I know, walking tru the code now slowly checking where it stops :S
# 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?