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

Repeated $config value #1058

Merged
merged 2 commits into from
Oct 1, 2020
Merged

Repeated $config value #1058

merged 2 commits into from
Oct 1, 2020

Conversation

Dazag
Copy link
Contributor

@Dazag Dazag commented Sep 30, 2020

There is a repeated value name at the end of this page in the last advanced configuration ($config). I have changed the name of one of them because it can create confusion and it wouldn't work anyways.

Q A
Type improvement
BC Break no
Fixed issues none

Summary

URL where you can find the typo:
https://www.doctrine-project.org/projects/doctrine-migrations/en/3.0/reference/configuration.html#advanced

There is a repeated value name at the end of this page in the last advanced configuration ($config). I have changed the name of one of them because it can create confusion and it wouldn't work anyways.
$entityManager = EntityManager::create(['driver' => 'pdo_sqlite', 'memory' => true], $config);

return DependencyFactory::fromEntityManager($config, new ExistingEntityManager($entityManager));
return DependencyFactory::fromEntityManager($ORMconfig, new ExistingEntityManager($entityManager));
Copy link
Member

Choose a reason for hiding this comment

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

this is wrong. This one is meant to be $config holding the doctrine/migrations config. the ORM Config is meant to be used in the EntityManager::create call on the previous line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess you are looing at an old commit? I did a second commit that fixed it, my bad.

Copy link
Member

Choose a reason for hiding this comment

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

well, Github shows me that your second commit has been done after my review

I was wrong, and changed one of the values that shouldn't change.
@goetas goetas merged commit 64fc903 into doctrine:3.0.x Oct 1, 2020
@goetas
Copy link
Member

goetas commented Oct 1, 2020

Thank you!

@goetas goetas added this to the 3.0.2 milestone Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants