Log message #4227697

# At Username Text
# Feb 18th 2020, 21:51 challgren Yeah, mainly due to typing the functions thats only supported in php 7.1+
# Feb 18th 2020, 21:50 ricksaccous i'm guessing that's what you mean or am i wrong composer wise as well?
# Feb 18th 2020, 21:50 ricksaccous but he prob changed more of the plugin for the 4.0.0-beta tag, heh
# Feb 18th 2020, 21:49 ricksaccous i thought that was an or so it would be from 3.5 <= 3.9 or 4.0 +
# Feb 18th 2020, 21:49 ricksaccous oh really? dayum
# Feb 18th 2020, 21:27 challgren And also FYI cake 3.x plugins will never work with 4.x without some modification so ^3.5|^4.0 will not work
# Feb 18th 2020, 21:04 ricksaccous thank you kindly
# Feb 18th 2020, 21:04 ricksaccous okay i'll just delete it
# Feb 18th 2020, 21:03 challgren Yeah your PR is on master but theres a cake-4.x that has the correct constraints
# Feb 18th 2020, 21:03 ricksaccous yeah that works
# Feb 18th 2020, 21:03 challgren try 4.0.0-beta
# Feb 18th 2020, 21:03 ricksaccous Problem 1 - The requested package admad/cakephp-glide 4.0.0@beta exists as admad/cakephp-glide[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.x-dev, 2.0.0, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 4.0.0-beta, dev-cake-4.x, dev-master] but these are rejected by your constraint.
# Feb 18th 2020, 21:01 ricksaccous okay, should i just remove the pr then?
# Feb 18th 2020, 21:01 challgren Change your glide version to 4.0.0@beta
# Feb 18th 2020, 21:01 ricksaccous i'm not that good with composer
# Feb 18th 2020, 21:00 ricksaccous is that why it's not working? lol
# Feb 18th 2020, 21:00 ricksaccous min-stability: "dev"
# Feb 18th 2020, 21:00 ricksaccous yeah
# Feb 18th 2020, 21:00 challgren Theres a 4.0.0@beta available
# Feb 18th 2020, 20:59 challgren @ricksaccous you have min-stability: dev in composer.json?
# Feb 18th 2020, 20:31 ricksaccous heh
# Feb 18th 2020, 20:31 ricksaccous put in a PR
# Feb 18th 2020, 20:25 ricksaccous sorry i should have linked the plugin: https://github.com/ADmad/cakephp-glide
# Feb 18th 2020, 20:24 slackebot cakephp/cakephp 4.x-dev -> satisfiable by cakephp/cakephp[4.x-dev].
# Feb 18th 2020, 20:24 ricksaccous @admad does this work for cakephp4? composer is throwing a fit for me Can only install one of: cakephp/cakephp[3.x-dev, 4.x-dev]. - Can only install one of: cakephp/cakephp[3.x-dev, 4.x-dev]. - admad/cakephp-glide 3.1.0 requires cakephp/cakephp ^3.5 -> satisfiable by cakephp/cakephp[3.x-dev]. - Installation request for admad/cakephp-glide ^3.1 -> satisfiable by admad/cakephp-glide[3.1.0]. - Installation request for
# Feb 18th 2020, 19:57 ndm Actually the `provider` option and `setProvider()` go hand in hand, I mixed something up there
# Feb 18th 2020, 19:54 ndm https://book.cakephp.org/4/en/core-libraries/validation.html#using-custom-validation-rules https://book.cakephp.org/4/en/core-libraries/validation.html#adding-validation-providers
# Feb 18th 2020, 19:54 ndm Also you can use custom validation providers, either per rule using the `provider` option, or per validator by setting it via `Validator::setProvider()`
# Feb 18th 2020, 19:53 ndm More like `$validator->add('password', ['rule' => [$this, '_isPasswordValue']]);`, assuming it's a method on the containing object. The `rule` option generally accepts callables, ie also closures.
# Feb 18th 2020, 19:47 wizardfix (v. 3.8) I'm trying to set up password validation. I have written a function, `_isPasswordValid()`, that tests if a password is valid according to character requirements, so I need to make a rule that my validator calls this function. How do I do this? Something like `$validator->add('_isPasswordValid', ['field' => 'password']);` ? :thinking_face:
# Feb 18th 2020, 19:39 ndm no problem
# Feb 18th 2020, 19:33 FunkadelicRelic Got it! Thank you @ndm - again....
# Feb 18th 2020, 19:24 ndm If you're using the form helper, then you need to make sure that the option for the control is a `key => value` array, where the `key` is the value that you want to be passed, the `value` is the label that you want to display.
# Feb 18th 2020, 19:16 FunkadelicRelic I think $data['recommendationgroup_id'] may be coming in wrong from the dropdown in my add form. Thinking maybe I'm pulling in 0 instead of 1 for the first dropdown item.
# Feb 18th 2020, 19:13 ndm If the number would be used at all, and not just interpreted as array index
# Feb 18th 2020, 19:12 ndm Not sure what exactly you mean by "_backwards results_", if it's sorting, then you need to order accordingly, as the default order of the DBMS can be rather non-deterministic. Have the condition the other way around however certainly shouldn't work at all, as it would compare a integer against a string, like `WHERE 1 = 'recommendation_group_id'`.
# Feb 18th 2020, 19:08 FunkadelicRelic One interesting thing is that if I flip the where as mentioned, I seem to get backwards results, but that could just be my statement, I'll have a quick look.
# Feb 18th 2020, 19:07 FunkadelicRelic Well that certainly looks better!
# Feb 18th 2020, 19:03 FunkadelicRelic Ah good catch - I was still on toArray. I'll try now.
# Feb 18th 2020, 19:01 ndm btw your `where()` array should be flipped, it should be like `where(['recommendation_group_id' => $data['recommendationgroup_id'])`
# Feb 18th 2020, 19:00 challgren https://cakesf.herokuapp.com/ is the link to get an invite