-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue where xml mapping cannot find file on certain configurations #6254
Conversation
…0% due to less serialization/deserialization
…Persistence::getSelectJoinColumnSQL()
…on of EntityGeneratorTest. No explanation why it iss failing yet
… embeddeds and discriminator columns to hold its owning table name.
… be brought back with proper implementation
…sing checks for discriminator column and version column.
…ear($entityClass), clear($proxyClass), clear($rootOfInheritance)
This needs a test case. |
@@ -911,7 +911,8 @@ private function getCascadeMappings(SimpleXMLElement $cascadeElement) | |||
protected function loadMappingFile($file) | |||
{ | |||
$result = []; | |||
$xmlElement = simplexml_load_file($file); | |||
$xmlData = file_get_contents($file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be inlined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Status: Answer pending.
@@ -911,7 +911,7 @@ private function getCascadeMappings(SimpleXMLElement $cascadeElement) | |||
protected function loadMappingFile($file) | |||
{ | |||
$result = []; | |||
$xmlElement = simplexml_load_file($file); | |||
$xmlElement = simplexml_load_string(file_get_contents($file)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any situation where simplexml_load_file()
is not returning false
with a not found file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any situation where
simplexml_load_file()
is not returningfalse
with a not found file?
Indeed, that's what a test would verify, but I see no tests.
This is related to #3788. |
daf5c17
to
3fabe0d
Compare
@mistraal can you please rebase with |
Please refer to this issue and this issue.
While this is a very specific case, it is not exclusive to Nginx server as it also happens on my Apache setup.