Serialized field and null values
Neurergus opened this issue · comments
Carlos Martínez commented
Hi,
I have a serialized field with the options allow_null and convert_empty set to TRUE, but even if I set the field to null, it saves something like "N;" (php serialized representation of null, I suppose :S).
I've modified the save function to temporarily circumvent this:
public function save($model, $value, $loaded)
{
return $value ? @serialize($value) : $value;
}
At least it's working for my case :-)
Jonathan Geiger commented
Should closed by 1481e29