Here are the tables:
https://github.com/phaidon/Wikula/blob/master/src/modules/Wikula/lib/Wikula/Entity/Pages.php
https://github.com/phaidon/Wikula/blob/master/src/modules/Wikula/lib/Wikula/Entity/Links.php
Here is the doctrine 1 query:
Code
$q = Doctrine_Query::create()
->from('Wikula_Model_Pages a')
->select('a.tag, b.to_tag')
->leftJoin('a.Wikula_Model_Links b')
->where('a.latest = ?', array('Y'));
->from('Wikula_Model_Pages a')
->select('a.tag, b.to_tag')
->leftJoin('a.Wikula_Model_Links b')
->where('a.latest = ?', array('Y'));
The join is on Wikula_Entity_Pages.tag = Wikula_Entity_Links.from_tag
Thanks a lot for your answers
Edited by phaidon on Sep 21, 2011 - 11:40 PM.
--
https://github.com/phaidon/
