In doctrine 2 there are by default no foreign key fields a ID. For example your “product” entity might have a “shop” property, but no “shopId” property.
To get all the products that belong to a shop you would always have to make a join like this:
But in certain situations it would be nice to use the foreign key column directly, in this case “shopId”. That More >
Copyright © PieterVogelaar.nl 2018 All rights reserved | Disclaimer | RSS Feeds