protected function _update() { parent::_update(); $metadata = $this->getTable()->info('metadata'); foreach ($this->_data as $key => $value) { if ($value == null && $metadata[$key]['NULLABLE']) { $this->_data[$key] = null; } } }