I have a Entity class named Product.php and have a variable that following code.
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $specialPrice;
I want to update the type of the above variable as boolean. And i want to this with console. And i've tried this:
php bin/console make:entity
And it gave an output like this:
[ERROR] The "specialPrice" property already exists.
So, this code didn't allow to update the variable in the Entity Class. Is there a way to do this? Is it possible? (Except for manually updating in the Class.) Thanks for answers.
您可以简单地手动删除该属性及其 getter 和 setter 并再次执行命令php bin/console make:entity
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.