Add back classes for BC

However there is a problem since the new Doctrine entities
has a field called parent but in DBObject it's called parent_id