Get entities with Doctrine