Doctrine extensions