When you use a single collection to contain an entire type hierarchy, then use this trait to make sure that type hints
are appended to find, count and update queries. (Please note you need to make sure your indexes on this shared collection
take your type hint fields into account!)
In addition, when you use the concrete subclass DAO to insert, update and save objects, a type hint will be appended to
the serialized object.
When you use a single collection to contain an entire type hierarchy, then use this trait to make sure that type hints are appended to find, count and update queries. (Please note you need to make sure your indexes on this shared collection take your type hint fields into account!)
In addition, when you use the concrete subclass DAO to insert, update and save objects, a type hint will be appended to the serialized object.