G
G
gitdev2019-05-02 19:50:25
symfony
gitdev, 2019-05-02 19:50:25

How to properly create migrations in Symfony?

How do I see it: an entity is created and a migration is generated based on it? or how to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sts, 2019-05-02
@gitdev

The easiest way is everything from the console, but then you google it)

Создаем модель
php bin/console make:entity

Создаем миграцию
php bin/console make:migration

Применяем миграцию
php bin/console doctrine:migrations:migrate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question