Assuming I have a base class IVehicule and I have Car inheriting from IVehicule. Let's say I have a table User referencing a relation one-to-many to IVehicule and I inserted an Car as child to User. How can I load all IVehicule relation objects even if they actually are Car?
Do I have to make multiple relations for each derived types (User::listCars, User::listTrucks, ....)? or is there a more elegant way using the base class IVehicule?
No Inheritance mapping or polymorphic relations are not supported, I never used these types of relations and don't plan to add support for them in the near future.
Hi,
Assuming I have a base class
IVehicule
and I haveCar
inheriting fromIVehicule
. Let's say I have a tableUser
referencing a relation one-to-many toIVehicule
and I inserted anCar
as child toUser
. How can Iload
allIVehicule
relation objects even if they actually areCar
?Do I have to make multiple relations for each derived types (
User::listCars
,User::listTrucks
, ....)? or is there a more elegant way using the base classIVehicule
?Thanks!