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;
}
Although this should really be just array and object, not strange false types i added this patch to prevent future reports of this as a problem. The loosely typed language PHP can go with null or false, so why throw people stones in their way.