bug with boolean toggle field
Suppose we've got boolean field:
/**
* @var boolean
* @ORM\Column(name="is_active", type="boolean")
*/
private $is_active;
If you try to customize list action:
list:
fields:
- name
- is_active
You will get red warning "inaccessible" for field "is_active"
Boolean fields w/names like active|available|archive displayed and customized w/o problems
The $is_active property is private, so your entity must have any of the following public methods to be readable (the first one that exists is used):
getIs_active()
isIs_active()
is_active()
hasIs_active()
getIsActive()
isIsActive()
isActive()
hasIsActive()
To be writable/editable, we look for these methods:
setIs_active()
setIsIs_active()
setIsActive()
setIsIsActive()
But... appropriate methods are exists in model
/**
* Get is_active
*
* @return boolean
*/
public function getIsActive()
{
return $this->is_active;
}
/**
* Set is_active
*
* @param boolean $isActive
* @return Product
*/
public function setIsActive($isActive)
{
$this->is_active = $isActive;
return $this;
}
Then this is a bug. I'll take a look into it.
I can confirm the bug and I've proposed a fix in #585.