How to create migration in Symfony?

As I see it: the entity is created and it generated the migration? or how to do it?
March 20th 20 at 11:32
1 answer
March 20th 20 at 11:34
Solution
The easiest way - all from the console, and then naguglit)
Create a model
php bin/console make:entity

Create a migration
php bin/console make:migration

Apply the migration
php bin/console doctrine:migrations:migrate
I mean how to do it, I don't work in the team and now will need to go to work in a team - geovanni_Weima commented on March 20th 20 at 11:37
@narciso_Murazik, well, this is the most common method of development. Simply, if you want to know what is behind these teams, then, either read the code or Google.
This method is not appropriate when it's completely something different to do, but by this time You will already understand - savanna_Becke commented on March 20th 20 at 11:40
@narciso_Murazik, In the end, get what I wrote there, look) - savanna_Becke commented on March 20th 20 at 11:43

Find more questions by tags Symfony