Log message #4193973

# At Username Text
# Jul 22nd 2019, 09:18 neon1024 Flying to Japan is expensive ,:(
# Jul 22nd 2019, 09:17 challgren Morning neon
# Jul 22nd 2019, 09:17 neon1024 Morning everyone :wave:
# Jul 22nd 2019, 09:06 challgren The domain set like that is only for the message id
# Jul 22nd 2019, 09:06 challgren Sounds like quota limits are your real issue
# Jul 22nd 2019, 09:05 aivaras.godliauskas i tried setting up domain name, but no effect as well
# Jul 22nd 2019, 09:05 challgren Then use mailgun or sendgrid
# Jul 22nd 2019, 09:04 aivaras.godliauskas we have this solution, but cant use it due to quota limits
# Jul 22nd 2019, 09:03 challgren https://support.google.com/a/answer/176600?hl=en
# Jul 22nd 2019, 09:02 aivaras.godliauskas i gues it domain relaited. simple mails and mails send via CLI comes from difrenet senders. Default mails are configured with gsuite (foto). But if email is sent from cli. sender is shown as server.
# Jul 22nd 2019, 08:59 challgren @aivaras.godliauskas whats your issue?
# Jul 22nd 2019, 08:53 aivaras.godliauskas hi. I have a problem with sending emails over cakephp shells. (CLI) anyone have experience with it?
# Jul 21st 2019, 18:26 marek.sebera @ndm thank you very much, that was actually not clear from the documentation to me, i'll try to push some texts to book
# Jul 21st 2019, 12:36 ndm @marek.sebera Use the `list` finder and `matching()` https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#finding-key-value-pairs https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#filtering-by-associated-data-via-matching-and-joins ``` $CategoriesTable ->find('list') ->matching('Companies', function (\Cake\ORM\Query $query) { return $query->where([ 'Companies.id' => 123 ]); }); ```
# Jul 20th 2019, 17:56 marek.sebera Hi, is it possible to get list of related associated model? Specifically I have "Company belongsToMany Categories" and I'd like to fetch list (id=>nameField) of Categories, that are mapped by specific company_id in joinTable. Thank you!
# Jul 20th 2019, 11:43 admad But all 3.x minor release are backwards compatible. So you can just go through the migration guides and make minor adjustments if necessary and upto to latest 3.8 release
# Jul 20th 2019, 11:41 admad @jenil.sanghvi it has already ended.
# Jul 20th 2019, 08:12 jenil.sanghvi Do we know the end of support for 3.2 framework?
# Jul 20th 2019, 08:07 jenil.sanghvi Hi
# Jul 19th 2019, 20:33 grzegorek.rafal is there a way to use CakePHP 3 entities in more "explicit" way? By "explicit" I mean to define an entity with fields which are set with values from database (something like Doctrine).
# Jul 19th 2019, 20:31 grzegorek.rafal hello
# Jul 19th 2019, 12:39 ndm @adrienlambertwac That's not supported in 2.x IIRC. If that key is the primary key of the other table, then it should work out of the box I think...?
# Jul 19th 2019, 12:23 adrienlambertwac Hi everyone, anybody use again Cakephp 2.x ^^ ? I want to set my primary key in the declaration of hasOne, is it possible ? In Cakephp3.x , i use the option bindingKey, but it does not work in version 2.x :(
# Jul 19th 2019, 11:30 admad @willem see the how to core shells were switched to commands in 4.0
# Jul 19th 2019, 10:53 willem question: shells are deprecated and console command is the new shell system, right. In shells i could have multiple methods per shell e.g. calculateSingle, calculateAll and call the shell with shellname calculate_all or shellname calculate_single. In commands there seems to be only one method accepted (‘execute’). So how would i mimic/create the example with two methods in a command ?
# Jul 19th 2019, 10:43 neon1024 Is it just the fixture injector listener or are there other bits which will break? I presume the cake test suite relys on the v5/v6 api of phpunit
# Jul 19th 2019, 10:43 neon1024 Can I backport PHP Unit 7 to Cake 3?
# Jul 19th 2019, 09:18 neon1024 Morning all :wave:
# Jul 19th 2019, 08:53 conehead I will have a look!
# Jul 19th 2019, 08:51 admad selecting 'Users.id' is necessary for proper related property population, else you you will also need `->enableAutoFields()`
# Jul 19th 2019, 08:50 conehead Ah I was not. That is brilliant. Thanks
# Jul 19th 2019, 08:50 admad they would select specified fields of users and all fields of profiles
# Jul 19th 2019, 08:49 admad @conehead in case you arent aware you can pass assocations to select() `$this->Users->select(['Users.name', 'Users.id'])->select($this->Users->Profiles)`
# Jul 19th 2019, 08:48 ndm no problem :slightly_smiling_face:
# Jul 19th 2019, 08:47 conehead I am sorry
# Jul 19th 2019, 08:47 conehead Valuable lesson not to strip examples anymore :(
# Jul 19th 2019, 08:46 ndm And that's why examples shouldn't be stripped down too much ;) `hasOne` will by default use a join to include the data, so your select list excludes the fields from the join, hence it won't show up. `hasMany` will use a separare query to retrieve the data, so it will ignore your select list.
# Jul 19th 2019, 08:40 slackebot $this->Articles->find()->contain(['Comments'])->select(['Articles.id, 'Articles.name, ']->first();
# Jul 19th 2019, 08:40 conehead @ndm Oh my god. I found it out thanks to your help. Although this is still a little bit confusing if you ask me. For `hasMany` (or any association containing more than one element) you do not need to select specific fields and the whole entity will show up in the property list. If the association is `hasOne`, then you will have to define the the fields you want to select. Example: ``` With hasMany:
# Jul 19th 2019, 08:25 conehead Thank you very much for this
# Jul 19th 2019, 08:25 conehead Well I think you pushed me in the right direction. Still don't know exactly what it is....but I had to test it at a different location and there it works