Doctrine code removed.