brick / orm

Object-relational mapper for PHP 8 - Currently in development 🚧
10 stars 1 forks source link

WHERE IN () for discriminator values #1

Open BenMorel opened 5 years ago

BenMorel commented 5 years ago

When finding an entity that has child classes, we need to perform a WHERE IN() with the discriminator value of the entity class AND those of all its subclasses.

Currently, only the dicriminator value for the class itself is requested.