简体   繁体   中英

How can I change a property type with maker-bundle on symfony

I created a table with a PRICE property but I made it to be an Integer and I would want to change it to a FLOAT type.

The problem is that I made a migration and now the problem is also on database so I cannot change simply the PHP code I think.

You can change property type in your entity class (also in getter & setter ) And make a:

" symfony console doctrine:schema:update -F " to update your database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM