fixed fails in fromArray() and toArray() if document is embedded

 Remove calls to setId() and getId() if the document is embedded in DocumentFromToArray.php.twig