2011-02-03 55 views

回答

0

發現在撇號插件答案:

$q = Doctrine_Query::create()->from('Tagging tg, tg.Tag t, Content c'); 
$q->andWhere('c.id = tg.taggable_id and c.state_id = ?', 3); 

$this->tagsInOrder = PluginTagTable::getAllTagNameWithCount($q,Array('model' => 'Content', 'sort_by_popularity' => true)); 
相關問題