Log message #4223591

# At Username Text
# Jan 23rd 2020, 15:48 k4t here you can see full log
# Jan 23rd 2020, 15:47 slackebot <k4t>
# Jan 23rd 2020, 15:44 ndm Look at the stacktrace to see where and for what operation exactly the exception is being thrown
# Jan 23rd 2020, 15:41 k4t as you can see
# Jan 23rd 2020, 15:41 k4t but result is the same
# Jan 23rd 2020, 15:41 k4t bin\cake bake model PPlaces --connection pdfPlatform One moment while associations are detected. Exception: The datasource configuration "default" was not found.
# Jan 23rd 2020, 15:41 k4t I also tried
# Jan 23rd 2020, 15:38 k4t but it works when you just want to list all tables from db
# Jan 23rd 2020, 15:38 k4t it looks like passing connection name when you want to bake a model does not work
# Jan 23rd 2020, 15:36 k4t CakePHP 3.8
# Jan 23rd 2020, 15:36 k4t any ideas?
# Jan 23rd 2020, 15:36 k4t bin\cake bake model PPlaces -c pdfPlatform -> will give me error Exception: The datasource configuration "default" was not found.
# Jan 23rd 2020, 15:35 k4t bin\cake bake model -c pdfPlatform -> will give me list of all models in database
# Jan 23rd 2020, 15:34 k4t Hi
# Jan 23rd 2020, 15:34 val @ndm, ah, foreign key must be selected :)
# Jan 23rd 2020, 15:30 spriz like /foo/bar/baz/action would be hitting the controller in this path `/plugins/Foo/src/Controller/Bar/Baz/ActionController`?
# Jan 23rd 2020, 15:30 val @ndm any idea why 'select' strategy would not generate a query?
# Jan 23rd 2020, 15:29 spriz is there a sneaky way to make more nested levels of prefix controllers available in cake 3.x ? :P
# Jan 23rd 2020, 15:13 ndm https://book.cakephp.org/4/en/orm/retrieving-data-and-resultsets.html#changing-fetching-strategies
# Jan 23rd 2020, 15:13 ndm Should work via the `strategy` option for the containment I think
# Jan 23rd 2020, 15:11 val @ndm is there a way to change the association strategy 'join' to 'select' on the fly?
# Jan 23rd 2020, 15:09 val @ndm it looks like the mapper closure is not invoked
# Jan 23rd 2020, 15:02 val @ndm indeed, beforeFind is invoked but the mapper does not work as expected
# Jan 23rd 2020, 15:00 ndm That's only for delete operations if I'm not mistaken
# Jan 23rd 2020, 14:59 neon1024 If it’s a bulk operation and it’s not set true, the callback would be skipped right
# Jan 23rd 2020, 14:58 neon1024 @ndm Could it be to do with cascadeCallbacks in the association?
# Jan 23rd 2020, 14:58 ndm @val Have you checked that the method really isn't being invoked (as opposed to the mapper maybe not working as expected)?
# Jan 23rd 2020, 14:53 jotpe I did `bin/cake cache clear_all` and `bin/cake orm_cache clear`
# Jan 23rd 2020, 14:52 val @ndm. hmmm... doesn't happen in my case
# Jan 23rd 2020, 14:51 neon1024 @jotpe Local model cache?
# Jan 23rd 2020, 14:49 jotpe Even weirder: The code in production does work o.O
# Jan 23rd 2020, 14:48 ndm @val That should happen automatically.
# Jan 23rd 2020, 14:47 jotpe so should be correct
# Jan 23rd 2020, 14:47 jotpe my table name for that is: ```invoice_itemgroups```
# Jan 23rd 2020, 14:46 neon1024 Shouldn’t that be InvoiceItemGroups?
# Jan 23rd 2020, 14:46 neon1024 Might be this one? InvoiceItemgroups
# Jan 23rd 2020, 14:45 slackebot <jotpe>
# Jan 23rd 2020, 14:45 jotpe Hm. Yeah, @neon1024 I saved this nested. For some reason The query does not fail, if I comment out this part (of one method in RegistrationsTable):
# Jan 23rd 2020, 14:41 slackebot <jotpe>
# Jan 23rd 2020, 14:41 neon1024 I wonder if the query is containing other tables then? Perhaps you’ve typo’d one of those
# Jan 23rd 2020, 14:41 slackebot <jotpe>