Log message #4172357

# At Username Text
# 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
# Jan 4th 2019, 21:43 phantomwatson Then all rules will be checked
# Jan 4th 2019, 21:42 phantomwatson Don't mark the rule as `'last' => true`.
# Jan 4th 2019, 21:42 ricksaccous hwo do you prevent execution from being stopped
# Jan 4th 2019, 21:42 ricksaccous i don't understand your question
# Jan 4th 2019, 21:42 phantomwatson Or how to prevent it from being validated?
# Jan 4th 2019, 21:42 ricksaccous nooooo
# Jan 4th 2019, 21:42 phantomwatson You're asking how you validate your entity?
# Jan 4th 2019, 21:42 ricksaccous oh
# Jan 4th 2019, 21:41 ricksaccous is that what you meant?
# Jan 4th 2019, 21:41 ricksaccous on entity
# Jan 4th 2019, 21:41 ricksaccous i mean
# Jan 4th 2019, 21:41 ricksaccous checking for errors within validation
# Jan 4th 2019, 21:41 phantomwatson How do you prevent execution from being stopped?
# Jan 4th 2019, 21:40 ricksaccous how do i get around that, lell
# Jan 4th 2019, 21:40 ricksaccous yeah i figured
# Jan 4th 2019, 21:40 phantomwatson If the parent model's first validation rule is for child data and it's marked last, then on the condition that that rule is violated, no subsequent validation checks should take place for that entity.
# Jan 4th 2019, 21:39 ricksaccous about array conversions
# Jan 4th 2019, 21:39 ricksaccous before the main validator but i got some weird error
# Jan 4th 2019, 21:39 ricksaccous $validator = $this->RelatedModel->validationSomething($validator)
# Jan 4th 2019, 21:39 ricksaccous and I tried $this->RelatedModel->validationSomething($validator)
# Jan 4th 2019, 21:38 phantomwatson Validation rules should run in the same order as the code.