/** * @param boolean $bypassSerialization enables PS2 support */ public function setData($v, $bypassSerialization = false) { if ($bypassSerialization) { return parent::setData($v); } if (!is_null($v)) { $sereializedValue = serialize($v); parent::setData($sereializedValue); } else { parent::setData(null); } }
/** * @param boolean $bypassSerialization enables PS2 support */ public function setData($v, $bypassSerialization = false) { if ($bypassSerialization) { return parent::setData($v); } $this->setDuplicationKey(BatchJobPeer::createDuplicationKey($this->getJobType(), $v)); if (!is_null($v)) { $sereializedValue = serialize($v); if (strlen((string) $sereializedValue) > BatchJob::MAX_SERIALIZED_JOB_DATA_SIZE) { $v = new kJobCompressedData($sereializedValue); $sereializedValue = serialize($v); } parent::setData($sereializedValue); } else { parent::setData(null); } }