Log message #4101181

# At Username Text
# Dec 5th 2017, 17:10 hmic of course not
# Dec 5th 2017, 17:07 meder do they load in cli?
# Dec 5th 2017, 17:07 meder are there limitations to components, hmic?
# Dec 5th 2017, 16:43 hmic meder: request related: controller/component, response related: controller/component too, model "conditions": table with custom finder
# Dec 5th 2017, 16:42 meder is it more fitting to conjoin 2 similar controllers code in the model or component? the code has a lot of conditions on request params which probably warrants model, but dumps json at certain points (no results etc).
# Dec 5th 2017, 15:56 neon1024 I’m not sure how that related issue is related to nested contain closures
# Dec 5th 2017, 15:55 neon1024 Oh, I was just commenting on the included code snippet here in slack
# Dec 5th 2017, 15:55 hmic so cake does not know at query time
# Dec 5th 2017, 15:55 hmic it's not a join, it's in a collection after the queries, as it's database i18n
# Dec 5th 2017, 15:54 neon1024 Cake will tell you if you’ve failed to select a required foreign key :slightly_smiling_face:
# Dec 5th 2017, 15:54 hmic saeideng: i suppose your problem is not the order but a missing additional key to join the data up
# Dec 5th 2017, 15:53 neon1024 File uploaded https://cakesf.slack.com/files/U1BT622HW/F8A3NTNP7/screen_shot_2017-12-05_at_15.53.13.png / https://slack-files.com/T053DPNCM-F8A3NTNP7-f674660e63
# Dec 5th 2017, 15:52 neon1024 Yes, it is allowed.
# Dec 5th 2017, 15:47 saeideng :point_up_2:
# Dec 5th 2017, 15:46 saeideng ``` ->contain([ 'Events' => function (Query $query) { return $query->find() ->contain([ 'MainTopics' => function (Query $query) { return $query->find() ->select(['id', 'topic']); } ]); }, ```
# Dec 5th 2017, 15:45 saeideng https://github.com/cakephp/cakephp/issues/11395
# Dec 5th 2017, 15:45 saeideng is allowed to have nested contain () ?
# Dec 5th 2017, 15:44 saeideng hi
# Dec 5th 2017, 15:43 hmic it makes not much sense and is likely a typo IMHO
# Dec 5th 2017, 15:43 hmic joopm, show the code on github
# Dec 5th 2017, 15:38 joopm s
# Dec 5th 2017, 15:37 joopm using different names does not help
# Dec 5th 2017, 15:37 joopm too
# Dec 5th 2017, 15:37 joopm for me the $Tests is a result of a query
# Dec 5th 2017, 15:36 joopm i use this from the cookbook : $comments = $this->paginate($commentsTable->find());
# Dec 5th 2017, 15:32 joopm the url is http://localhost/cake_project/tests/search-test?sort=nameanddirection=asc
# Dec 5th 2017, 15:31 neon1024 You’re assigning the variable you’re trying to paginate
# Dec 5th 2017, 15:31 joopm whats the matter?
# Dec 5th 2017, 15:31 joopm the Tests became Undefined variable: Tests
# Dec 5th 2017, 15:30 joopm but if i try to clcik on the sort link
# Dec 5th 2017, 15:30 joopm $Tests = $this->paginate($Tests,['sortWhitelist'=>['Tests.name']]);
# Dec 5th 2017, 15:29 joopm the peginate is based on a query
# Dec 5th 2017, 15:29 johnwayne what is the best source of free Email templates that are compatible with view in outlook :slightly_smiling_face:
# Dec 5th 2017, 15:29 joopm i got a problem with ordering a "paginated"
# Dec 5th 2017, 15:22 hmic these are very bad bros and there are so many of them
# Dec 5th 2017, 15:21 pedroseco yes it must be
# Dec 5th 2017, 15:21 hmic welcome pedroseco. so some stupid plugin/setting in the brower profile for whatever reason :/
# Dec 5th 2017, 15:20 frazr Can't seem to pass conditions to the contain for the join data
# Dec 5th 2017, 15:20 pedroseco @hmic thanks for the help
# Dec 5th 2017, 15:19 pedroseco ok so that explains this
# Dec 5th 2017, 15:19 frazr Hmm, how do i pass conditions to joinData in the pivot table? Should know this, but seem to have forgotten :)