Skip to content

Commit 29d86be

Browse files
authored
Merge pull request #127 from AlexaCRM/126-exception-deserializing-entity
Fixing #126
2 parents 2aee1d0 + e58aba6 commit 29d86be

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
composer.lock
44
vendor/
5+
.DS_Store

src/Entity.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ public function getEntityDOM( $allFields = false ) {
617617
$entityDOM = new DOMDocument();
618618
$entityNode = $entityDOM->appendChild( $entityDOM->createElement( 'entity' ) );
619619
$entityNode->setAttributeNS( 'http://www.w3.org/2000/xmlns/', 'xmlns:i', 'http://www.w3.org/2001/XMLSchema-instance' );
620+
$entityNode->setAttributeNS( 'http://www.w3.org/2000/xmlns/', 'xmlns:b', 'http://schemas.microsoft.com/xrm/2011/Contracts' );
620621
$attributeNode = $entityNode->appendChild( $entityDOM->createElementNS( 'http://schemas.microsoft.com/xrm/2011/Contracts', 'b:Attributes' ) );
621622
$attributeNode->setAttributeNS( 'http://www.w3.org/2000/xmlns/', 'xmlns:c', 'http://schemas.datacontract.org/2004/07/System.Collections.Generic' );
622623
/* Loop through all the attributes of this Entity */

0 commit comments

Comments
 (0)