In my custom model I want to store the data in serialized form. For achieving it by myself I have done the following thing but instead of all this 0 is getting stored against value
In my class Inchoo_Custombuilders_Model_Mysql4_Cableconnector extends Mage_Core_Model_MySql4_Abstract file
$this->_serializableFields = array(
'cable_id' => array(null, array())
);
I also tried override the _beforeSave Action
protected function _beforeSave()
{
if(is_array($this->getValue())){
var_dump($this->getValue());die();
$this->setValue(serialize($this->getValue()));
}
}
And I cannot change the database table design because some functionality that is build on the frontend is running from this table only.
What is the proper way to save serialize data into database in Magento.