Removed Doctrine deprecated calls