| Making this work in OGM might be complicated. the problem is that the entity can be in any of the subclasses and, in MongoDB for example, this means different collections. To find the id you are looking for we might need to check all the collections until we find it. Maybe we should at least throw an execption to let people know that it is not working right now. Note that this works when using SINGLE_TABLE inheritance (because in this case we have a discriminator column but the collection is always the same ). |