Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0-RC1-RC3
-
Fix Version/s: 2.0-RC5
-
Component/s: None
-
Labels:None
Description
The following class when value is set to false causes "Could not convert database value "b:0;" to Doctrine Type object" exception when loading the entity.
/** @orm:Entity */
class MyClass
{
/**
- @orm:Column(name="value", type="object")
*/
public $value;
}
From the PHP manual about unserialize():
In case the passed string is not unserializeable, FALSE is returned and E_NOTICE is issued.The solution: Use NULL instead of false