You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating version 2.0. Getting exception for below line. It is working on previous version.
XML Schema validation throw an exception about this line
There wasn't any error about that line in previous versions. We just return. if (@$document->schemaValidate(__DIR__ . '/../../../../../../doctrine-mongo-mapping.xsd')) { return; }
Current behavior
In current version throwing exception. if (! $document->schemaValidate(__DIR__ . '/../../../../../../doctrine-mongo-mapping.xsd')) { throw MappingException::xmlMappingFileInvalid($filename, $this->formatErrors(libxml_get_errors())); }
I don't know if it's possible, but maybe the validation should be less strict same like in ORM.
Well, there's still no resolution in doctrine-extensions/DoctrineExtensions#2055 for which we hoped. I believe the only tangible thing we can do is to let users opt-out from the XSD validation, but that's obviously a footgun.
BC Break Report
Summary
After updating version 2.0. Getting exception for below line. It is working on previous version.
XML Schema validation throw an exception about this line
<field field-name="created" type="date" name="created"> <gedmo:timestampable on="create"/> </field>
Previous behavior
There wasn't any error about that line in previous versions. We just return.
if (@$document->schemaValidate(__DIR__ . '/../../../../../../doctrine-mongo-mapping.xsd')) { return; }
Current behavior
In current version throwing exception.
if (! $document->schemaValidate(__DIR__ . '/../../../../../../doctrine-mongo-mapping.xsd')) { throw MappingException::xmlMappingFileInvalid($filename, $this->formatErrors(libxml_get_errors())); }
I don't know if it's possible, but maybe the validation should be less strict same like in ORM.
Refer: #2095
The text was updated successfully, but these errors were encountered: