I have three entities which are "Addressable" (can have an Address):
Delivery Points
Customers
Distribution Centers
Every Addressable entity also is Geolocatable (has latitude and longitude), but i have entities that are Geolocatable but not Addressable, like Track Points and Route Points (an ordered sequence of lat and lngs).
What is the best way (please take performance in account, as some tables may have millions of rows), to achieve this with doctrine 2 (using Symfony2 and YAML mapping)?
My question is: what is the best approach for this problem? mapped supperclasses? single table inheritance? multi table inheritance? I didn't get which one is best for this by reading doctrine's docs.
I'm using PostgreSQL, if that matters.