Log message #4223480

# At Username Text
# Jan 23rd 2020, 10:30 neon1024 So perhaps you can filter by `belongsToMany`
# Jan 23rd 2020, 10:30 neon1024 Although this is in the core `foreach ($table->associations()->type('BelongsTo') as $assoc) {`
# Jan 23rd 2020, 10:29 conehead @dereuromark sweet. On holiday?
# Jan 23rd 2020, 10:27 neon1024 I *think* it’s `foreach ($this->associations() as $association => $tableName)`
# Jan 23rd 2020, 10:26 neon1024 I tend to loop the associations, using `$this->associations()`
# Jan 23rd 2020, 10:25 val What is the proper way to get join model alias and table name in HABTM in 3.x?
# Jan 23rd 2020, 10:19 dereuromark Releasing from hawaii^^
# Jan 23rd 2020, 10:18 dereuromark I fixed it. 3.0 should now work
# Jan 23rd 2020, 10:10 rudy1976s I am bit confused: so what version should I download with composer?
# Jan 23rd 2020, 10:04 dereuromark Autsch.. i should have used my work app for releasing.
# Jan 23rd 2020, 10:03 admad @dereuromark what he means is why is the new major 1.0 instead of 3.0, since the previous is 2.0
# Jan 23rd 2020, 09:59 dereuromark Jep, and minimum stability beta, then it works. See sandbox cake4 branch etc
# Jan 23rd 2020, 09:50 dereuromark What did i ... up?^^
# Jan 23rd 2020, 09:02 gianmarxgagliardi morning ALL
# Jan 23rd 2020, 08:59 challgren I’d probably use dev-cake4 until the version could be fixed to be 3.0.0-beta
# Jan 23rd 2020, 08:58 challgren But that seems like a version issue that @dereuromark might need to fix since 2.7.1 is out that supports cake3.5+
# Jan 23rd 2020, 08:57 rudy1976s @challgren thank you
# Jan 23rd 2020, 08:57 challgren https://github.com/dereuromark/CakePHP-DatabaseLog/releases/tag/1.0.0-beta
# Jan 23rd 2020, 08:57 challgren or dev-cake4
# Jan 23rd 2020, 08:57 challgren @rudy1976s 1.0.0-beta
# Jan 23rd 2020, 08:42 rudy1976s I am working for the first time with cake 4: I was trying to install dereuromark databaselog but I was unable to do it because of composer contraints: what is the correct version ?
# Jan 23rd 2020, 08:41 rudy1976s morning all
# Jan 23rd 2020, 04:31 turkles scratch that, I was doing the right thing it seems by ->get('role_id)
# Jan 23rd 2020, 04:22 turkles If I've grabbed my user, contain roles, how do I add a role to that so I can save the user and it updates the users_roles list?
# Jan 23rd 2020, 02:09 waspinator can you use the orm to look for rows filtered on values in a json field?
# Jan 23rd 2020, 01:53 wizardfix 123:+1::skin-tone-3:
# Jan 23rd 2020, 01:41 challgren @dereuromark to the transport?
# Jan 23rd 2020, 01:39 dereuromark I found out the same. Could also have been a dto^^
# Jan 23rd 2020, 00:25 luizcmarin @wizardfix https://api.cakephp.org/3.8/class-Cake.Validation.Validator.html#_sameAs ?
# Jan 22nd 2020, 23:44 challgren So question with custom transports? I was under the understanding `Transport::send()`could return an array with anything in the array but in the CakePHP 4.0.2 code its typehinted with `@psalm-return array{headers: string, message: string}`
# Jan 22nd 2020, 23:26 wizardfix @luizcmarin https://api.cakephp.org/3.7/class-Cake.Validation.Validator.html#_uploadedFile
# Jan 22nd 2020, 23:24 slackebot compares two fields but can't find it now. :) Looking at Stack Ovf etc. I find all sorts of ways of achieving this, many of which look pretty hacky. So I'm just looking for some advice on which way to go with this please... :thinking_face:
# Jan 22nd 2020, 23:24 wizardfix *Validation question: using Cake 3.8* I need to validate a User entity by comparing `password` and `confirm_password` fields and checking the password contains one of a list of non-alphanumeric characters. So I have been trying to find a `Cake\Validation\Validator` method that compares two fields, and a method that checks a string. I guess I need to write a custom validator for the latter, but I'm sure I found a method recently that
# Jan 22nd 2020, 22:52 ndm It's a PHP thing, scalar values are integers, floats, booleans and string
# Jan 22nd 2020, 22:51 luizcmarin @ndm 'scalar' cake === 'string' ?
# Jan 22nd 2020, 22:49 slackebot and then use application rules on the actual field, to validate the path where the file has been stored, at least that's for solutions where the path is being figured in the saving stage.
# Jan 22nd 2020, 22:49 ndm You are validating the `foto1` field as a scalar, which fails because the uploaded file object isn't a scalar value. I'm not familiar with that plugin, but it seems that it you have to care about handling the upload kinda yourself: https://github.com/josbeir/cakephp-filesystem#simple-upload-example Generally to avoid such problems with uploads, people usually use a separate field for the upload, one wich will have actual upload validation rules,
# Jan 22nd 2020, 22:44 luizcmarin Perhaps some more information will help. I'm trying to use https://github.com/josbeir/cakephp-filesystem to make uoploads of images. But it's hard ...
# Jan 22nd 2020, 22:39 luizcmarin does anyone know anything about this type of error?
# Jan 22nd 2020, 22:13 luizcmarin I have a type => 'File' field for uploading an image. It is mysql, varchar (255). I am now getting the "Object of class Laminas \ Diactoros \ UploadedFile error could not be converted to string." What type should be used in the database? I installed the plugin https://github.com/josbeir/cakephp-filesystem.
# Jan 22nd 2020, 20:24 challgren Install the suggestions if your going to use them such as storing them in a cloud provider