# |
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 |
# |
Dec 5th 2017, 15:14 |
pedroseco |
same request type of text/html |
# |
Dec 5th 2017, 15:14 |
pedroseco |
Ok no good. same problem |
# |
Dec 5th 2017, 15:13 |
pedroseco |
just a second. just disabled the AV and I'm restarting the browsers. |
# |
Dec 5th 2017, 15:12 |
pedroseco |
same user is being tested on other machines. |