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

BUGFIX: Doctrine controller should allow empty host for database #442

Merged
merged 1 commit into from Aug 23, 2016

Conversation

kitsunet
Copy link
Member

The doctrine controller checked for correct configuration of a database
before calling the doctrine methods. As the drivers all have different
options the host is a not a conclusive check. The only thing that
can be checked is if a driver was set.

The doctrine controller checked for correct configuration of a database
before calling the doctrine methods. As the drivers all have different
options the ``host`` is a not a conclusive check. The only thing that
can be checked is if a driver was set.
@mention-bot
Copy link

@kitsunet, thanks for your PR! By analyzing the annotation information on this pull request, we identified @kdambekalns, @dfeyer and @robertlemke to be potential reviewers

@kitsunet
Copy link
Member Author

@robertlemke @kdambekalns This should fix the configuration problem regarding sockets and/or no host.

IMHO that makes much more sense for now. Please quickly check. Behavior is as expected.

@kdambekalns
Copy link
Member

What happens when no host is configured, though? Does some default come from us, Doctrine or even MySQL itself?

@kitsunet
Copy link
Member Author

@kdambekalns yes the EntityManagerFactory currently defaults that to 127.0.0.1 as was before via settings

@kdambekalns
Copy link
Member

I see. Well, I like. :)

@@ -499,4 +485,14 @@ protected function handleException(\Exception $exception)
$this->systemLogger->logException($exception);
$this->quit(1);
}

protected function isDatabaseConfigured()
Copy link
Member

Choose a reason for hiding this comment

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

lacks a DocComment

@kitsunet
Copy link
Member Author

Tests pass, will merge for now :)

@kitsunet kitsunet merged commit 77601a0 into neos:3.3 Aug 23, 2016
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.

None yet

4 participants