Log message #4172378

# At Username Text
# Jan 5th 2019, 23:39 cakephp411 Anyone there?
# Jan 5th 2019, 23:20 cakephp411 Can someone help me with updating hasOne associations? I've got inserting working but when updating it only updates the entity, not it's association
# Jan 5th 2019, 23:19 cakephp411 Hey there
# Jan 5th 2019, 21:39 dereuromark Nick: Not everyone is always using latest minor already, as such the docs try to also be valid for them to some extend
# Jan 5th 2019, 21:04 NickBusey It looks like that example code wouldn't even work, based on this answer: https://stackoverflow.com/questions/31566745/cakephp-3-events
# Jan 5th 2019, 20:44 NickBusey I have two tables set up basically just like this: https://book.cakephp.org/3.0/en/development/testing.html#testing-events But the `removeFromCart` function is never called.
# Jan 5th 2019, 20:26 NickBusey Is there a reason certain parts of the docs display deprecation warnings saying to use different code, rather than just displaying the correct current code? Example from events page: `Deprecated since version 3.5.0: Use getEventManager() instead.`
# Jan 5th 2019, 19:39 NickBusey hmm, phpunit is marking comment blocks as untested code
# Jan 5th 2019, 17:57 challgren Try turning off the cache
# Jan 5th 2019, 17:57 challgren Ahh could be that too
# Jan 5th 2019, 17:54 josexato thanks for the sugestion, actually I think this happens when it tries to serilize routes for cache
# Jan 5th 2019, 17:48 challgren Try setting debug = false and see if it still happens
# Jan 5th 2019, 17:47 challgren Probably because its trying to serialize the request for debugging purposes
# Jan 5th 2019, 17:47 josexato yes
# Jan 5th 2019, 17:47 josexato My question is if there is a way to add later that configuration
# Jan 5th 2019, 17:47 challgren You using debug_kit?
# Jan 5th 2019, 17:46 josexato I understant this is becasue I am defining a closure as identity decorator for the authorization middleware
# Jan 5th 2019, 17:45 josexato but I am getting this error `Serialization of 'Closure' is not allowed #0 /var/www/html/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php(149):`
# Jan 5th 2019, 17:44 josexato hello one question regardin scoped middleware, I am trying to pass arguments to a middleware registration at routes in Application.php
# Jan 5th 2019, 17:33 kitcat711 my pleasure @ricksaccous: mauy be this is silly, but when I ask and finally found, I just let people know
# Jan 5th 2019, 16:28 ricksaccous @kitcat711 i enjoyed reading that
# Jan 5th 2019, 13:54 kitcat711 found it using methods_exists($this, $functionName) . Thx for reading
# Jan 5th 2019, 13:48 kitcat711 hello, what is the right way to check if a method exists from a model inside this model? I tried the php unction_exists() witout any success
# Jan 5th 2019, 10:05 birdy247 How are you
# Jan 5th 2019, 10:05 birdy247 Happy new year :slightly_smiling_face:
# Jan 5th 2019, 10:05 birdy247 @hmic thanks
# Jan 5th 2019, 09:59 hmic birdy247: since 3.5 or something flash messages are stacked by default, not replaced. so you can just do that
# Jan 5th 2019, 09:54 birdy247 Seems a bit long winded
# Jan 5th 2019, 09:54 birdy247 I thought about looping through the errors and then assigning each to a flash
# Jan 5th 2019, 09:53 birdy247 Does anyone know any neat ways to show multiple Flash messages from any validation/rule errors?
# Jan 5th 2019, 06:34 AVol Hi, guys. I've upgraded CakePHP to 3.7.1, and trying to get rid of deprecation warnings. One warning is that Controller::viewVars is deprecated. How can I check which variables have been set in the controller without it?
# Jan 5th 2019, 02:03 lpj145 i tried this, but, if date of register is a 2018-11-30 21:00 this is not selected.
# Jan 5th 2019, 02:02 lpj145 hi guys, need help you.. how i can select between datetime on cakephp ?
# Jan 4th 2019, 22:19 phantomwatson I've added an issue for that TimeHelper bug: https://github.com/cakephp/cakephp/issues/12872
# Jan 4th 2019, 21:45 ricksaccous i think i'll move on
# Jan 4th 2019, 21:45 ricksaccous anwyay this is an edge case
# Jan 4th 2019, 21:45 ricksaccous it won't be allowed to be hydrated
# Jan 4th 2019, 21:45 ricksaccous because if the entity field itself within the other entity has an error
# Jan 4th 2019, 21:44 ricksaccous so it can't place errors on them anyway
# Jan 4th 2019, 21:44 ricksaccous i think without validating the parent it won't hydrate the hasMany as entities
# Jan 4th 2019, 21:44 ricksaccous hmph that still didn't put an error on the child array in the entity