Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question