Log message #4150079

# At Username Text
# 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
# Jun 11th 2018, 17:31 admad did you remove the `Plugin::routes()` call from config/routes.php ?
# Jun 11th 2018, 17:31 developer what should I do to fix that?
# Jun 11th 2018, 17:30 developer File uploaded https://cakesf.slack.com/files/UB6BN898W/FB6GHEN2K/-.php / https://slack-files.com/T053DPNCM-FB6GHEN2K-d0935410bf - and for example I have a plugin with that code :
# Jun 11th 2018, 17:28 admad yes you do
# Jun 11th 2018, 17:27 developer I followed the error link on my app "https://book.cakephp.org/3.0/en/development/application.html#adding-the-new-http-stack-to-an-existing-application" but I'am not sure if I have to remove Plugin::routes(); from routes.php
# Jun 11th 2018, 17:26 developer it's said the same error
# Jun 11th 2018, 17:26 developer but I already install a clean cake and still the problem