Log message #4180476

# At Username Text
# Mar 22nd 2019, 18:47 hollistergraham123 scroll down a little and see how to filter
# Mar 22nd 2019, 18:46 hollistergraham123 https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#working-with-result-sets
# Mar 22nd 2019, 18:45 hollistergraham123 or do $query->filter(manager => count(manger.player) > 0)
# Mar 22nd 2019, 18:44 hollistergraham123 Set it to a right join
# Mar 22nd 2019, 18:39 ricksaccous I think dereuromark makes a join and does voodoo with that
# Mar 22nd 2019, 18:39 ricksaccous I only want Managers with at least one player
# Mar 22nd 2019, 18:38 ricksaccous ie Managers hasMany Players
# Mar 22nd 2019, 18:38 ricksaccous whats the best way to filter parents where i remove parents that have no children
# Mar 22nd 2019, 17:54 ricksaccous hehehehe
# Mar 22nd 2019, 17:53 jhall so $this->log should work after this
# Mar 22nd 2019, 17:53 jhall it wasn't in my face so I did not notice this
# Mar 22nd 2019, 17:52 jhall haha
# Mar 22nd 2019, 17:52 jhall I see the problem
# Mar 22nd 2019, 17:52 jhall oh
# Mar 22nd 2019, 17:52 slackebot2 <jhall>
# Mar 22nd 2019, 17:51 ricksaccous which is ultimately based on the docs XD
# Mar 22nd 2019, 17:49 ricksaccous i haven't played with logs too much but just giving suggestions based on what i think should work
# Mar 22nd 2019, 17:49 ricksaccous heh
# Mar 22nd 2019, 17:49 ricksaccous it seems you can use $this->log if you use log trait
# Mar 22nd 2019, 17:48 ricksaccous https://book.cakephp.org/3.0/en/core-libraries/logging.html#writing-to-logs
# Mar 22nd 2019, 17:47 jhall no its not working
# Mar 22nd 2019, 17:47 ricksaccous probably the better solution is to use https://book.cakephp.org/3.0/en/core-libraries/logging.html#Cake\Log\Log::write
# Mar 22nd 2019, 17:46 ricksaccous is that not working?
# Mar 22nd 2019, 17:45 jhall Do I need to do anything special @ricksaccous?
# Mar 22nd 2019, 17:34 jhall okay I can try that
# Mar 22nd 2019, 17:23 ricksaccous then you can instantiate that class and use it i assume
# Mar 22nd 2019, 17:22 ricksaccous you probably need to use Cake\Log\Engine\FileLog assuming that's the one you've configured
# Mar 22nd 2019, 17:22 ricksaccous @jhall look at Cake\Log\Engine\FileLog
# Mar 22nd 2019, 17:01 jhall setup a listener?
# Mar 22nd 2019, 17:01 jhall is it possible I need to reference a namespace or something?
# Mar 22nd 2019, 17:00 jhall well tried that and it did nothing
# Mar 22nd 2019, 17:00 dereuromark $this->log()?
# Mar 22nd 2019, 16:56 jhall If I want to write out some variable values of a command shell to the debug error log how do I go about doing that? Or how do I do this in general?
# Mar 22nd 2019, 15:22 tjkalinowski :wave:
# Mar 22nd 2019, 15:22 tjkalinowski Tanks !!!!!
# Mar 22nd 2019, 15:22 ricksaccous lmao
# Mar 22nd 2019, 15:22 tjkalinowski WORKED!!
# Mar 22nd 2019, 15:22 ricksaccous @tjkalinowski please read what i linked
# Mar 22nd 2019, 15:20 tjkalinowski @ricksaccous This piece of code works fine for me. But do not display start_date.
# Mar 22nd 2019, 15:20 ricksaccous just do 'valueField' => function ($group) { return $group->group_name . ' ' . $group->start_date; }
# Mar 22nd 2019, 15:19 ricksaccous @tjkalinowski https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#customize-key-value-output