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

Defective doctrine version #126

Closed
HerHde opened this issue Dec 8, 2021 · 5 comments · Fixed by #127
Closed

Defective doctrine version #126

HerHde opened this issue Dec 8, 2021 · 5 comments · Fixed by #127

Comments

@HerHde
Copy link

HerHde commented Dec 8, 2021

Describe the bug
When executing php bin/console doctrine:schema:create I get the following error: An option named "em" already exists..
This is seems to be a fixed issue in DoctrineBundle, fixed one patch version later than the used doctrine/doctrine-bundle 2.3.1 Symfony DoctrineBundle.

To Reproduce
Steps to reproduce the behavior:

  1. git clone this repo
  2. Follow the Getting Started-instructions up to the DB part or just php composer.phar install
  3. Execute php bin/console
  4. See error

Expected behavior

"It just works!"

Screenshots
image

Additional context
I guess composer update would fix the issue, but I can't test it on out low-mem server. This issue keeps me from installing ODC.

Off-topic: The cert for your demo instance is expired

@holema
Copy link
Collaborator

holema commented Dec 8, 2021

Hello @HerHde,
you wrote that you entered php bin/console.
It seems to me that there is an argument missing like php bin/console doc:sche:create or something like this.

We made an update of symfony and will publish it tomorrow.

@holema
Copy link
Collaborator

holema commented Dec 8, 2021

Hello @HerHde, you wrote that you entered php bin/console. It seems to me that there is an argument missing like php bin/console doc:sche:create or something like this.

We made an update of symfony and will publish it tomorrow.

I just found your entered command in the question :)

@HerHde
Copy link
Author

HerHde commented Dec 9, 2021

Actually I executed sudo -u www-data php bin/console doctrine:schema:create amongst others.

@holzi1005
Copy link
Collaborator

@HerHde
A new release was published with an updated Symfony. In our test environment the doctrine creation works.

@holzi1005 holzi1005 linked a pull request Dec 9, 2021 that will close this issue
@HerHde
Copy link
Author

HerHde commented Dec 10, 2021

Thank you, but unfortunately that didn't help me, as it left the mentioned version untouched. However, explicitly updating via sudo -u www-data php composer.phar update doctrine/doctrine-bundle did that trick and I got rid of the error ;-)

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 a pull request may close this issue.

3 participants