Log message #4101169

# At Username Text
# 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 :)
# Dec 5th 2017, 15:18 pedroseco incognito works just fine
# Dec 5th 2017, 15:18 pedroseco ok you were right
# Dec 5th 2017, 15:16 pedroseco thnks
# Dec 5th 2017, 15:16 pedroseco ok
# Dec 5th 2017, 15:16 hmic FF has an option to restart in safe mode, somewhere :~
# Dec 5th 2017, 15:16 hmic hold the Control key while clicking the icon, i hope
# Dec 5th 2017, 15:15 hmic and/or try incognito tab
# Dec 5th 2017, 15:15 pedroseco how can I do that on Win?
# Dec 5th 2017, 15:14 hmic now start the browser in safe mode, all plugins disabled