Log message #4133076

# At Username Text
# Apr 17th 2018, 11:15 makallio85 In Migration file $this->table('tableName')->changeColumn('colName', $newColType, $options)->update();
# Apr 17th 2018, 11:09 portilloster Guys, any easy way to change the type of existing column without baking the table again? (v.3.5)
# Apr 17th 2018, 11:02 makallio85 If you were given task to implement restriction to display specific entities application wide, unless especially granted, what kind of approach would be your choice? Entities with specific flags, should require free-text explanation from user, why user wants to see entity data. I should concern entity view pages directly and listing entities as well.
# Apr 17th 2018, 10:53 neon1024 Unless `$_virtual` could be a callback method which return an array, and takes the config perhaps?
# Apr 17th 2018, 10:52 neon1024 and `$_virtual = ['custom_field']`
# Apr 17th 2018, 10:52 neon1024 Which uses `_getCustomField()`
# Apr 17th 2018, 10:52 neon1024 I’m talking about `$_virtual` which is an array of method names though
# Apr 17th 2018, 10:51 saeideng `$entity->getCustomField($arg1)`
# Apr 17th 2018, 10:51 saeideng $entity->getCustomField()
# Apr 17th 2018, 10:50 saeideng @neon1024
# Apr 17th 2018, 10:44 neon1024 What would this kind of entity method look like? As virtual properties work on methods right/
# Apr 17th 2018, 10:44 neon1024 I’d like to dynamically create virtual fields in my entity, based on a configuration. The configuration varies by Table class
# Apr 17th 2018, 10:43 neon1024 Hello everyone
# Apr 17th 2018, 10:21 hippo Nevermind, it's working
# Apr 17th 2018, 10:00 hippo should `$entity->setErrors('attribute', ['message']); return false; ` work in a beforeSave()?
# Apr 17th 2018, 09:05 portilloster yes!, thanks @neon1024 :-)
# Apr 17th 2018, 09:01 neon1024 So yeah, use the `$context`
# Apr 17th 2018, 08:55 joshualuckers See "conditional validation" https://book.cakephp.org/3.0/en/core-libraries/validation.html#conditional-validation
# Apr 17th 2018, 08:47 portilloster Hi @neon1024!! These below are class properties right? I want to create a rule for one of them and I need the other one for comparign :slightly_smiling_face: $validator ->date('FechaBajaSolicitud') ->notEmpty('FechaBajaSolicitud'); $validator ->date('FechaAltaReclamacion') ->notEmpty('FechaAltaReclamacion');
# Apr 17th 2018, 08:38 sonu_nk domain.com/auth?state=91andcode=4/kPAobhARwQntv0qucokyBwvgAM60OhpTcypoLZc i have this in browser, when i am trying to access query params then it saying blank array.. with$_REQUEST or $_GET even its not wokring..
# Apr 17th 2018, 08:37 sonu_nk hi here
# Apr 17th 2018, 08:19 neon1024 If it’s a class property, you can pass it into your function with a use `function ($foo) use ($bar) {`
# Apr 17th 2018, 08:18 neon1024 If it’s request data, the second param of $context will have the data you need
# Apr 17th 2018, 08:18 neon1024 Is it part of the data being validated, or is it a class property?
# Apr 17th 2018, 08:18 neon1024 Can you define what an attribute is?
# Apr 17th 2018, 07:07 portilloster Morning everyone! I need to make a validating function on the Model/Table, and I need to send it two attributes from that Table. I know how to do it with one attribute creating the rule for it, but how do I pass the second attribute to the function?
# Apr 17th 2018, 06:51 wyrihaximus hey @joshualuckers :wave:
# Apr 17th 2018, 06:50 joshualuckers hi @wyrihaximus :D
# Apr 17th 2018, 02:17 genellern @jarreddurant14 Why would you say that ?
# Apr 17th 2018, 01:25 jarreddurant14 Alright, I replaced it with this: ``` Configure::load('users', 'default'); Plugin::load('CakeDC/Users', ['routes' => true, 'bootstrap' => true]);``` and it's not throwing an exception - but it doesn't seem to be loading the new configuration
# Apr 17th 2018, 00:58 slackebot2 the plugin was working before I tried to use my own custom controller with it. Please @ me if you have anything to say! Thanks! :D
# Apr 17th 2018, 00:58 jarreddurant14 Hi all! :wave: I'm having some issues configuring my own custom settings on the CakeDC/Users plugin on Cake 3.6. Here's what I have currently: ```Configure::load('CakeDC/Users.config', 'default'); Plugin::load('CakeDC/Users', ['routes' => true, 'bootstrap' => true]);``` and I have `config/users.php` in my config folder. I'm getting `Exception: Plugin CakeDC/Users could not be found.` when I've already required it with Composer, and
# Apr 16th 2018, 22:11 dwms I found the problem, in a specific place I did the correct change, thank you
# Apr 16th 2018, 22:03 itmpls hmm is Usuarios model missing something?
# Apr 16th 2018, 22:02 dwms I did, it was after I changed the name of the Users to Usuarios model that the problem happened
# Apr 16th 2018, 21:58 itmpls try re-doing that whoel tutorial
# Apr 16th 2018, 21:57 dwms File uploaded https://cakesf.slack.com/files/UA71ZN1PS/FA8SE59FH/usuarioscontroller_php.php / https://slack-files.com/T053DPNCM-FA8SE59FH-780bd1c462
# Apr 16th 2018, 21:56 dwms File uploaded https://cakesf.slack.com/files/UA71ZN1PS/FA8MSRWT0/-.php / https://slack-files.com/T053DPNCM-FA8MSRWT0-911af13829
# Apr 16th 2018, 21:21 itmpls anymore besides the first file you sent?
# Apr 16th 2018, 21:21 itmpls config settings for auth?
# Apr 16th 2018, 21:21 itmpls what are your settings