I have a Symfony project with Doctrine. Doctrine has a command doctrine:schema:update
.
It gets used too often, lets say out of habits. After running the doctrine:schema:update
all the migrations are messed up.
I want to disable that command but cant figure out how (of even IF) i can do that.
I have tried:
- Extend the class, give is the same COMMAND and throw an exception
- Define it in my
services.yaml
aspublic:false
- Define it in my
services.yaml
with a non-existing class (ugly, but working).
This all does nothing, each time the update command returns the default result.