Classes for use with Doctrine ORM and DBAL