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

[Symfony 5.0, 4.4] Bug php bin/console make:migration #34696

Closed
JefDc opened this issue Nov 28, 2019 · 3 comments
Closed

[Symfony 5.0, 4.4] Bug php bin/console make:migration #34696

JefDc opened this issue Nov 28, 2019 · 3 comments

Comments

@JefDc
Copy link

JefDc commented Nov 28, 2019

Symfony version(s) affected: 5.0, 4.4

Description
Hello,

I have a problem when I want to migrate an entity with the terminal command "php bin/console make:migration" which has a ManyToOne relationship.

Just before I create an entity via the command "php bin/console make:entity" which has several fields (title VARCHAR, slug VARCHAR, content TEXT, category MANY TO ONE).

After the migration command, when I go to see in the migration file, in the up function I have this:

15746015435814_Capture d’écran 2019-11-24 à 14 02 53

My entity file

Capture d’écran 2019-11-28 à 16 53 17

Capture d’écran 2019-11-28 à 16 53 36

@dmaicher
Copy link
Contributor

Which version of DoctrineBundle are you using?

Most likely this was caused by the bug that was fixed in doctrine/DoctrineBundle#1073

@JefDc
Copy link
Author

JefDc commented Nov 29, 2019

v1.8.0

@JefDc
Copy link
Author

JefDc commented Nov 29, 2019

After update, work !!!
Tank you for your reponse !

@JefDc JefDc closed this as completed Nov 29, 2019
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

No branches or pull requests

2 participants