Skip to content
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

Closed
wants to merge 137 commits into from
Closed

Fix issue where xml mapping cannot find file on certain configurations #6254

wants to merge 137 commits into from

Conversation

mistraal
Copy link

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.

…on of EntityGeneratorTest. No explanation why it iss failing yet
… embeddeds and discriminator columns to hold its owning table name.
…sing checks for discriminator column and version column.
@Ocramius
Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be inlined

Copy link
Contributor

@phansys phansys left a 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));
Copy link
Contributor

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?

Copy link
Member

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?

Indeed, that's what a test would verify, but I see no tests.

@phansys
Copy link
Contributor

phansys commented Feb 1, 2017

This is related to #3788.

@lcobucci
Copy link
Member

@mistraal can you please rebase with develop dropping all commits that aren't yours please?

@mistraal mistraal closed this Feb 20, 2017
@mistraal mistraal deleted the fix-xmldriver-mapping branch February 20, 2017 22:55
@Ocramius Ocramius self-assigned this Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants