can someone tell me what is wrong with my code.
Using Doctrine 2 with PHP 5.3 MySQL 5.5
My YAML mapping is for a BIT field named IsDefault, which has a value of 1 or 0 if I want the value to be true or false in my application:
IsDefault:
type: boolean
nullable: false
Generated Entity:
private $IsDefault;
public function setIsDefault($isDefault)
{
$this->IsDefault = $isDefault;
return $this;
}
public function getIsDefault()
{
return $this->IsDefault;
}
Unfortunately, when accessing data in my application, each row returns IsDefault as TRUE. Does anyone know why?
source
share