Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $q = new Doctrine_RawSql();
- $q->select('{f.*},{ft.*}')
- ->from('Forum f')
- ->leftJoin('Status s ON s.libelle LIKE "Published"')
- ->leftJoin('Forum_topic ft ON f.id = ft.forum_id AND ft.status_id = s.id')
- ;
- $q->addComponent('f', 'Forum f');
- $q->addComponent('ft', 'ForumTopic');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement