Function update "writeItem" for DoctrineWriter.php

I just added a new "getItemFunction" function to retrieve the getters and setters of the entity more accurately.