(i)
FROM User u
LEFT JOIN u.Phonenumbers where u.level > 1
What is u , I assume it is just an ALIAS to User ?
(ii)
$profile = Doctrine_Query::create()
->from('Profile p')
->innerJoin('p.User u')
->where('p.id = ?', 1)
->fetchOne();
What is p and u here ?
Need to quickly learn Doctrine ?
Please can anyone help ?
Thanks for your TIme , Cheers !
(i) Yes,
uis an alias for theUsertable.(ii) Here,
pis an alias for theProfiletable, anduis an alias for theUsertable. The phrasep.User urefers to a relationship betweenUserandProfile.