# |
Jun 11th 2018, 22:01 |
dereuromark |
See https://github.com/cakephp/debug_kit/issues/631 and the issue there. What plugin is it? |
# |
Jun 11th 2018, 21:49 |
rubenD |
guys, any assistance greatly appreciated. Fresh composer install and getting error of 'Cannot use Cake\Core\Plugin as Plugin because the name is already in use' |
# |
Jun 11th 2018, 21:07 |
itmpls |
anyone have any issues saving on an "alias" self-associated model? for example, $this->SpecialOffers->save($specialOfferEntity, ['associated' => 'ParentSpecialOfferDates']); complains that 'SpecialOfferDates.parent_special_offer_date_id' doesnt exist when clearly it does |
# |
Jun 11th 2018, 21:05 |
rightscoreanalysis |
is it possible/advisable to have my home page rendered with the default.ctp layout? By defauly it uses pages/home/ctp |
# |
Jun 11th 2018, 20:22 |
alexmax |
Yep, that was it |
# |
Jun 11th 2018, 20:18 |
alexmax |
There might not be any indentations to show |
# |
Jun 11th 2018, 20:18 |
alexmax |
Oh holy cow I might be an idiot |
# |
Jun 11th 2018, 20:16 |
alexmax |
``` |
# |
Jun 11th 2018, 20:12 |
alexmax |
What's going on here? |
# |
Jun 11th 2018, 20:11 |
alexmax |
I try and use both, and I get a list of children with no spacer |
# |
Jun 11th 2018, 20:11 |
alexmax |
Got a question. It doesn't appear that `find('children')` and `find('treeList')` play well together |
# |
Jun 11th 2018, 18:29 |
jeremyharris |
should be yeah |
# |
Jun 11th 2018, 18:29 |
itmpls |
would countercache be suitable for a voting setup? iirc, earlier on i implemented something like that but it had drawback, or maybe I ran into the same dirty thing |
# |
Jun 11th 2018, 18:26 |
jeremyharris |
I’m like why u no unnecessary operation cake?! |
# |
Jun 11th 2018, 18:26 |
itmpls |
thanks again :slightly_smiling_face: |
# |
Jun 11th 2018, 18:26 |
itmpls |
damnit. |
# |
Jun 11th 2018, 18:26 |
jeremyharris |
that gets me a lot |
# |
Jun 11th 2018, 18:26 |
admad |
yeah the ORM like 'em dirty |
# |
Jun 11th 2018, 18:25 |
itmpls |
OH it's probably not dirty |
# |
Jun 11th 2018, 18:24 |
jeremyharris |
to make sure they are reached. also check debug kit SQL panel to make sure it’s even saving on the comments table to begin with (e.g. no dirty fields = no save) |
# |
Jun 11th 2018, 18:24 |
jeremyharris |
you can throw debug/stackTrace statements in the behavior’s callbacks |
# |
Jun 11th 2018, 18:18 |
itmpls |
and cleared orm cache etc |
# |
Jun 11th 2018, 18:18 |
itmpls |
is there a way to debug the behavior? pretty sure I set it up right |
# |
Jun 11th 2018, 18:10 |
itmpls |
err - yeah I have the behavior on the right model. gonna see if I missed anything else :slightly_smiling_face: |
# |
Jun 11th 2018, 18:10 |
jeremyharris |
if it doesn’t contain Comments, there’s nothing to update |
# |
Jun 11th 2018, 18:10 |
jeremyharris |
if you update an Article that contains Comment entities, the behavior would fire when the Comments are changed |
# |
Jun 11th 2018, 18:09 |
jeremyharris |
I think it’s the other way around, the behavior is on the CommentsTable so when comments are changed, it updates the appropriate Article.comments_count |
# |
Jun 11th 2018, 17:58 |
itmpls |
it's not "aware" if you update a comment? |
# |
Jun 11th 2018, 17:58 |
itmpls |
for the countercache example in cake's docs with countercache on comments referencing Articles.comments_count, this would only work if/when you updated an Article entity? |
# |
Jun 11th 2018, 17:50 |
developer |
so, thank you for your help, I keep trying to fix that |
# |
Jun 11th 2018, 17:35 |
developer |
ok |
# |
Jun 11th 2018, 17:34 |
developer |
3,6,5 |
# |
Jun 11th 2018, 17:34 |
developer |
because the plugin works perfectly on cake version 3.6.4 but not on 3.6.4 |
# |
Jun 11th 2018, 17:34 |
admad |
it only mentioned `Plugin::routes()` |
# |
Jun 11th 2018, 17:34 |
admad |
don't read into things which error message does not actually say :slightly_smiling_face: |
# |
Jun 11th 2018, 17:33 |
developer |
I thought that* |
# |
Jun 11th 2018, 17:32 |
developer |
I mean the Router::plugin() it's deprecated and I thought I have to change it |
# |
Jun 11th 2018, 17:31 |
admad |
so? |
# |
Jun 11th 2018, 17:31 |
developer |
yeah |
# |
Jun 11th 2018, 17:31 |
admad |
then the error should be gone |
# |
Jun 11th 2018, 17:31 |
developer |
yes |