Log message #4124156

# At Username Text
# Mar 12th 2018, 15:07 dorxy @kitcat711 https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#custom-finder-methods
# Mar 12th 2018, 15:05 kitcat711 I am on 3.5
# Mar 12th 2018, 14:59 raul338 I do not konw about cakephp2
# Mar 12th 2018, 14:59 raul338 in cakephp3 in the table class
# Mar 12th 2018, 14:59 kitcat711 where do I define my fonder: model or entity ?
# Mar 12th 2018, 14:58 kitcat711 thx raul338
# Mar 12th 2018, 14:56 raul338 you should use a finder, when you want formatResults you call `$query->find('customFormat')`
# Mar 12th 2018, 14:54 kitcat711 When using formatResults(..), is there a way to define the format or do I need to rewrite everytime the format function ?
# Mar 12th 2018, 14:53 kitcat711 Hello
# Mar 12th 2018, 14:50 learningcake thank you guys for the help
# Mar 12th 2018, 14:42 Neon1024 Here, https://irc.cakephp.org/logs/link/4124154#message4124164
# Mar 12th 2018, 14:42 raul338 you should use a client that keeps history :P
# Mar 12th 2018, 14:42 learningcake ok. thank you. let me read up on the link and follow your example
# Mar 12th 2018, 14:42 raul338 I said "you can also set contain into $paginate options (maybe it was $pagination)"
# Mar 12th 2018, 14:41 learningcake @neon1023, no
# Mar 12th 2018, 14:41 Neon1024 `$query = $this->Examples->find()->contain(['Foo', 'Bar'])->matching('Foo', function () { //Stuff }); $this->Paginator->paginate($query)`
# Mar 12th 2018, 14:41 Neon1024 @learningcake, You can just pass a query into the Paginator. So just apply the matching() to your query and pass it in
# Mar 12th 2018, 14:40 neon1024 I did! Did the bot relay the message?
# Mar 12th 2018, 14:40 learningcake hello @raul338, sorry my internet connection broke. trying to get your comment from history. I don't know if any other person responded.
# Mar 12th 2018, 14:40 neon1024 https://book.cakephp.org/3.0/en/controllers/components/pagination.html#using-the-paginator-directly
# Mar 12th 2018, 14:38 raul338 (maybe it was $pagination)
# Mar 12th 2018, 14:38 raul338 you can also set contain into $paginate options
# Mar 12th 2018, 14:38 neon1024 `$query = $this->Examples->find()->contain(['Foo', 'Bar'])->matching('Foo', function () { //Stuff }); $this->Paginator->paginate($query)`
# Mar 12th 2018, 14:38 neon1024 learningcake, You can just pass a query into the Paginator. So just apply the matching() to your query and pass it in
# Mar 12th 2018, 14:30 joddit Hrm... Whatcha mean?
# Mar 12th 2018, 14:30 learningcake been searching internet but nothing yet
# Mar 12th 2018, 14:29 learningcake I need direction on how to create a pagination that will contain the Matching record from an Association
# Mar 12th 2018, 14:28 learningcake hello, guys! been a while
# Mar 12th 2018, 14:28 raul338 Thanks
# Mar 12th 2018, 14:27 raul338 then i should split into plugins
# Mar 12th 2018, 14:27 raul338 Good
# Mar 12th 2018, 14:26 neon1024 You can access other plugins as well should you need to, as long as they’re loaded
# Mar 12th 2018, 14:26 neon1024 Yes, you can access the core inside plugins
# Mar 12th 2018, 14:26 raul338 I will try it
# Mar 12th 2018, 14:26 raul338 That migth work
# Mar 12th 2018, 14:26 neon1024 `'className' => \Raul\Examples\ExamplesTable::class`
# Mar 12th 2018, 14:26 raul338 I thought about using plugins, but I do not konw yet if I can use App model / helpers inside Plugin Models / templates
# Mar 12th 2018, 14:25 neon1024 I would use a class constant in the ‘className’ option of the association
# Mar 12th 2018, 14:25 raul338 Sure, Any clue how should I defined belongsTo / hasMany ?
# Mar 12th 2018, 14:23 neon1024 I’ve never tried loading objects from outside convention
# Mar 12th 2018, 14:22 neon1024 You might also run into some issue with the TableRegistry, and need to build your own TableLocator class