Implement Doctrine writer