Affects Version/s: None
Fix Version/s: None
Component/s: Document Manager
Imagine a use case:
I have a set of classes, which extend abstract class BaseGridFsFile. All children classess are stored in same GridFs collection (using single collection inheritance).
But I cannot fetch all files from this collection, regardless their type. I know that I can use array of subclasses to fetch, but this won't work in my case, because there is no static DiscriminatorMap.
It whould be great if I could use something like this:
and Doctrine would instantiate proper classes for found documents.
Is it possible?