Re: HABTM example for CakeDC Search plugin

2011-12-20 Thread designv...@gmail.com
This is what I have currently: var $filterArgs = array( array('name' => 'filter', 'type' => 'query', 'method' => 'orConditions'), array('name' => 'filter', 'type' => 'subquery', 'method' => 'findByTags', 'field' => 'NewsPost.id'), ); public function findByTags($dat

Re: HABTM example for CakeDC Search plugin

2011-12-20 Thread designv...@gmail.com
Yep! Sure did! I was fairly sure I had followed everything correctly, but I kept getting "Operand should contain 1 column" error? I looked at debug and the 'tags' portion of the query was returning all the fields not just the id's? I think it's something to do with containable, but I couldn't fi

Re: HABTM example for CakeDC Search plugin

2011-12-20 Thread José Lorenzo
Did you read this? http://cakedc.com/downloads/view/cakephp_search_plugin -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe

HABTM example for CakeDC Search plugin

2011-12-20 Thread designv...@gmail.com
Hi there, Has anyone got an example of how to use the CakeDC plugin to query a related habtm relationship? I have a standard posts/tags setup and want to query the tags as well as the posts. TIA d//t -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check o