how do you link entities in doctrine, the equivalent of SQL JOIN?
in sql, to get data from a joined table together with the main one you can do a JOIN like this
select * from product PR join category C on c.catid=PR.catid
instead of this, in DOCTRINE you need to link two entities so that later you can just make a simple method call
$product->getCat()->getCatName()
Comments