S
S
semki0962017-01-20 00:43:42
symfony
semki096, 2017-01-20 00:43:42

How can one add a field to an existing object (table) when working with doctrine in Symfony?

How can one add a field to an existing object (table) when working with doctrine in Symfony? I thought that I need to connect a bundle with migrations, but I would like a simpler option if possible. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2017-01-20
@semki096

Locally, you can simply update the schema (see Symfony's Doctrine documentation). If the project is already running somewhere - migrations and only migrations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question