Hi,

I have two three tables: websites, tags, and tags_websites. The joiner
table stores website id, user id, and tag id. In the website view, I
want to show tags that user has created for that website. Here is my
HABTM for my website model

var $hasAndBelongsToMany = array(
                        'Tag' =>
                         array('className' => 'Tag',
                                        'joinTable' => '',
                                        'foreignKey' => '',
                                        'associationForeignKey' => '',
                                        'conditions' => '',
                                        'fields' => '',
                                        'order' => '',
                                        'limit' => '',
                                        'offset' => '',
                                        'uniq' => '',
                                        'finderQuery' => '',
                                        'deleteQuery' => '',
                                        'insertQuery' => ''),

Is it possible to put condition in the HABTM that can access user id
from othAuth
This is want I was trying but didn't worked

'conditions' => 'user_id = ' . {$this->othAuth->user('id')},

Any suggestions
Regards


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to