Skip to content

Commit

Permalink
Fixed XML mapping validation.
Browse files Browse the repository at this point in the history
Warning: DOMDocument::schemaValidateSource(): Element '{http://gediminasm.org/schemas/orm/doctrine-extensions-mapping}sortable-position': No matching global element declaration available,
but demanded by the strict wildcard.
  • Loading branch information
rn0 committed Jan 22, 2018
1 parent dc0a351 commit 61bc49e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ private function validateFile(DOMDocument $dom)
continue;
}

foreach ($dom->getElementsByTagNameNS($xmlns->nodeValue, '*') as $elem) {
$elem->parentNode->removeChild($elem);
$domNodeList = $dom->getElementsByTagNameNS($xmlns->nodeValue, '*');
for ($i = $domNodeList->length; --$i >= 0; ) {
$element = $domNodeList->item($i);
$element->parentNode->removeChild($element);
}
}

Expand Down

0 comments on commit 61bc49e

Please sign in to comment.