Re: spooky trouble with a plugin behavior

2010-10-21 Thread cricket
OK, that's ... six (?!) hours of my life I'll never get back. I've been chipping away at this, adding all kinds of debug() lines in Model & ClassRegistry, becoming convinced the latter had a bug whereby two models couldn't use the same plugin behavior. And then I looked--once again, but with a bit

spooky trouble with a plugin behavior

2010-10-21 Thread cricket
I'm working on a Comment plugin that I want to use for several models. One, Gallery, works perfectly. But another, Post, not so much. Both models have $actsAs = array('Comments.Commentable'); In the behavior's afterFind() I have this line: $data = $Model->Comment->threaded($Model->alias, $result