| View previous topic :: View next topic |
| Author |
Message |
kadamat
Joined: 01 Jun 2006 Posts: 88
|
| please, help me with code :var $hasAndBelongsToMany = array('Tag' => array('className' => 'Tag','joinTable' => 'posts_tags', 'foreignKey' => 'tag_id', 'associationForeignKey'=> 'post_id', |
| |
|
|
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
| what? |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| $this->Tag->find("find_in_set(Tag.name,'comma,separated,list,of,tags')"); |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| I think it's $this->Tag->find("Tag.name in ('comma','separated','tag','names')"); |
| |
|
|
|
|