Log message #4220280

# At Username Text
# Dec 27th 2019, 20:24 ashesh.social yeah ok @challgren
# Dec 27th 2019, 20:23 challgren You can use the MailgunTrait, MailgunMailer, or MailgunEmail
# Dec 27th 2019, 20:22 challgren You can still use the old Email format but in CakePHP 5.x its going to be removed so the mailer is the best route
# Dec 27th 2019, 20:21 ashesh.social Super great @challgren will check out
# Dec 27th 2019, 20:21 challgren https://book.cakephp.org/4/en/core-libraries/email.html#creating-reusable-emails
# Dec 27th 2019, 20:20 ashesh.social Where I need to use the above code you sent
# Dec 27th 2019, 20:20 challgren What do you mean?
# Dec 27th 2019, 20:20 ashesh.social So where will the code be present
# Dec 27th 2019, 20:20 challgren Same config as 3.x
# Dec 27th 2019, 20:20 ashesh.social Oh great @challgren
# Dec 27th 2019, 20:19 challgren Thats my usage right now
# Dec 27th 2019, 20:19 slackebot <challgren>
# Dec 27th 2019, 20:19 ashesh.social Hey @challgren
# Dec 27th 2019, 20:19 challgren Create a new mailer and use the MailgunTrait
# Dec 27th 2019, 20:19 ashesh.social Was trying for a whole day with lot many things
# Dec 27th 2019, 20:18 ashesh.social Any good documentation to integrate mailgun into cakephp 4
# Dec 27th 2019, 20:18 ashesh.social Hey all
# Dec 27th 2019, 20:04 admad `$staticUrl . '?' . http_build_query($queryArray)`
# Dec 27th 2019, 19:21 devito when using redirect, is there a way i can leverage the query array in the options while passing in a static external url? or do i need to build the whole url and just pass that in?
# Dec 27th 2019, 18:19 challgren @ashesh.social use dev-master for cake 4.x still ironing out stuff for the 5.x release
# Dec 27th 2019, 16:05 dereuromark or keyField, valueField config would also work
# Dec 27th 2019, 16:03 alexdd55976 thanks
# Dec 27th 2019, 16:03 alexdd55976 totally forgot abozuut extraaact
# Dec 27th 2019, 15:55 ndm `->extract('internal_username')->toArray()`
# Dec 27th 2019, 15:51 alexdd55976 i just want the usernames
# Dec 27th 2019, 15:51 alexdd55976 ```$usernames = $this->find('list') ->select(['internal_username']) ->disableHydration() ->toArray();```
# Dec 27th 2019, 15:51 alexdd55976 i get this with fnd list
# Dec 27th 2019, 15:50 alexdd55976 ```Array ( [0] => 1 [1] => 2 )```
# Dec 27th 2019, 15:47 dereuromark you didnt use find(list), thats why you have a deep array here
# Dec 27th 2019, 15:47 dereuromark but tbh, the given list of key=>value usually should suffice.
# Dec 27th 2019, 15:47 dereuromark sure, array_keys() on the find list^^
# Dec 27th 2019, 15:46 alexdd55976 i only get this ```Array ( [0] => Array ( [internal_username] => maa ) [1] => Array ( [internal_username] => mal ) )```
# Dec 27th 2019, 15:45 alexdd55976 nothing around it, just the array
# Dec 27th 2019, 15:45 alexdd55976 is it possible to get an array from a `->find()` which only has a list like `['a','b','c']`?
# Dec 27th 2019, 15:06 gianmarxgagliardi or to avoid that there is A vs B on day 2 and there is A vs B on day 3
# Dec 27th 2019, 15:05 gianmarxgagliardi to avoid that on day 3 there is A vs B and A vs C
# Dec 27th 2019, 15:04 gianmarxgagliardi sorry how can I build a rules that checks in the DB if that game has already been entered or if that team cannot be entered because it already has a match for that championship day
# Dec 27th 2019, 14:48 jotpe I would search somewhere over here: https://book.cakephp.org/3/en/orm/validation.html#applying-application-rules
# Dec 27th 2019, 14:45 gianmarxgagliardi sorry you know how consistency checks are done. For example, to prevent a certain value with a certain parameter from being entered multiple times? if there is anything in the documentation
# Dec 27th 2019, 14:29 slackebot   ]);         $this->belongsTo('Clubs', [             'foreignKey' => 'club_home_id',             'joinType' => 'INNER',         ]);         $this->belongsTo('Clubs', [             'foreignKey' => 'club_visitor_id',             'joinType' => 'INNER',         ]);```
# Dec 27th 2019, 14:29 gianmarxgagliardi ```$this->belongsTo('ClubsHome', [             'className' => 'Clubs',             'foreignKey' => 'club_home_id',             'joinType' => 'INNER',         ]);         $this->belongsTo('ClubsVisitor', [             'className' => 'Clubs',             'foreignKey' => 'club_visitor_id',             'joinType' => 'INNER',