doctrine-functions