I have generated Entities files, Proxies files and Tables/fields in database via .yml file schema. I would like to add one more field in schema file.
How can I regenerate Entities, Proxies and MySQL tables/fields via command line tool without dropping tables and deleting all records?
I tried with these and does not work (I am getting error):
./doctrine orm:schema-tool:create./doctrine orm:schema:tool:update
What did I miss?
I have found a solution:
With this command
orm:schema-tool:update --forceyou add/remove/update fields in database without dropping all records. But firstly you need to changeYAMLfile andEntity class.