Log message #4204891

# At Username Text
# Sep 20th 2019, 14:43 daniel.upshaw Yay :slightly_smiling_face:
# Sep 20th 2019, 14:43 neon1024 Then use starred items in the top right
# Sep 20th 2019, 14:43 daniel.upshaw Perfect
# Sep 20th 2019, 14:42 daniel.upshaw Thanks :slightly_smiling_face:
# Sep 20th 2019, 14:42 neon1024 You could star the message
# Sep 20th 2019, 14:40 henri.mjr Hello, I was working yesterday in an app and everything was OK, today I went back to work and I'm getting an empty response when I try to access a specific action, I renamed the action and it worked, but even accessing this action that no longer exists, I I get the empty response .. it looks like a cache, I've used cake cache clear_all but no luck .. What else can it be?
# Sep 20th 2019, 14:39 neon1024 All I can think of
# Sep 20th 2019, 14:39 neon1024 If it’s got an id it won’t be new
# Sep 20th 2019, 14:39 neon1024 If the entity has no dirty fields it will not be saved, and thus skip all these bits
# Sep 20th 2019, 14:37 jotpe status_id is a field of Table talks
# Sep 20th 2019, 14:37 jotpe No it's Talkstable and I'm doing `if ($this->Talks->save($talk)) {`
# Sep 20th 2019, 14:36 neon1024 Cake often kicks data off to the various tables, so if you’re in Posts but validating Tags, you should be in TagsTable
# Sep 20th 2019, 14:35 jotpe yes
# Sep 20th 2019, 14:35 neon1024 Are you in the right table?
# Sep 20th 2019, 14:35 neon1024 Erm with a param
# Sep 20th 2019, 14:35 jotpe hm. beforeRules isn't even triggered
# Sep 20th 2019, 14:34 neon1024 Create a `protected function _setStatus () { return 1; }`
# Sep 20th 2019, 14:34 neon1024 If you want to set a default, use a function in the entity
# Sep 20th 2019, 14:33 jotpe o.O
# Sep 20th 2019, 14:33 jotpe When I debug the entity in the controller, the status is not set
# Sep 20th 2019, 14:32 daniel.upshaw We could reach out to them? I don't mind trying that myself and looping you in
# Sep 20th 2019, 14:32 ricksaccous you're setting status
# Sep 20th 2019, 14:32 luizcmarin =>composer require --update-with-dependencies "cakephp/cakephp:4.0.*" result = Installation failed, reverting ./composer.json to its original content.
# Sep 20th 2019, 14:32 ricksaccous you aren't setting status_id in beforeRules
# Sep 20th 2019, 14:31 jotpe it's a int
# Sep 20th 2019, 14:31 jotpe status_id
# Sep 20th 2019, 14:31 daniel.upshaw It looks like dereuromark, markstory, and admad have done some stuff with SecurityComponent.php recently
# Sep 20th 2019, 14:31 ricksaccous or is status just a string
# Sep 20th 2019, 14:31 ricksaccous @jotpe are you setting the status id or the status entity?
# Sep 20th 2019, 14:30 jotpe is beforeRules not the right way?
# Sep 20th 2019, 14:30 jotpe I want to set the status by default for new entities. Why does the validation fail?
# Sep 20th 2019, 14:30 jotpe When I create a new Entity i get a validation error, saying the status is not set.
# Sep 20th 2019, 14:29 slackebot <jotpe>
# Sep 20th 2019, 14:27 neon1024 Why do params default to false and queries to null?
# Sep 20th 2019, 14:27 neon1024 `public function getParam($name, $default = false)`
# Sep 20th 2019, 14:27 neon1024 `public function getQuery($name = null, $default = null)`
# Sep 20th 2019, 14:27 neon1024 Why is this?
# Sep 20th 2019, 14:22 spriz and I was WTF when doing a review of it
# Sep 20th 2019, 14:22 spriz that's what it does now
# Sep 20th 2019, 14:22 neon1024 Then you can have an implicit controller method to update the entity
# Sep 20th 2019, 14:21 spriz yeah exactly