Consider an intermediate IntModel model.
Not tested, but this should work:
$q = Doctrine::getTable('IntModel')->createQuery('p') ->leftJoin('p.Content as c') ->leftJoin('p.ContentGroup as cg') ->where('cg.id = ?', $my_content_group_id)->fetchOne(); echo $q->getPosition();
source share