Hi everyone
Having some issue with CakeDC Tags Plugin (See
https://github.com/CakeDC/tags)
I'm using the _findTagged method to find all records from my model with a
specified tag. While it returns the top level model, I can't seem to get it
to return the associated model.
My model relationships:
Product belongsTo Store, Collection
Collection hasMany Product
Store hasMany Product
This is what I'm using to search by tag name:
$this->set('products', $this->Product->Tagged->find('tagged', array('by' =>
$this->passedArgs['tag'], 'model' => 'Product', 'recursive' => '2')));
This will return the Product records, but not the associated models - If I
do $this->Product->find('all'), the result is as expected - so model
relationships are correct.
Anyone have any experience with this plugin?
Kind Regards,
Jono
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.