P
P
P7472019-10-30 00:27:10
Doctrine ORM
P747, 2019-10-30 00:27:10

Why are migration classes needed in Symfony/Doctrine?

Good afternoon, I read an article about migrating through Doctrine to Symfony
What are Doctrine-generated PHP classes for, by what principle are properties and methods generated in these classes, depending on the table structure?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2019-10-30
@OnYourLips

Migrations are needed in order for the application to be responsible for its database.
You first change the code of the entity (entity), then do doctrine:migrations:diff, then it rolls up during the migration process.
It's in that order.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question