O
O
Oleg Kolesnikov2017-04-26 14:52:38
symfony
Oleg Kolesnikov, 2017-04-26 14:52:38

How to update the class of an already existing entity from the console?

Hello.
The ability to dynamically update an existing entity class is required.
While found only
doctrine:generate:entity
Creation of new entity. When you try to enter an already existing class, it gives an error
doctrine:generate:entities
Updates entities in accordance with the database.
I need to be able to change entities directly from the console.
Can you please tell me how this can be implemented? Maybe there is some kind of bundle?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elnur Urazymbetov, 2017-05-07
@u_elnur

In the console, after this command doctrine:generate:entities, you also need to enter the namespace with which you are working. For example:
or
or
doctrine:generate:entities App\Bundle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question