/** * @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); } }
/** * Returns a peer instance associated with this om. * * Since Peer classes are not to have any instance attributes, this method returns the * same instance for all member of this class. The method could therefore * be static, but this would prevent one from overriding the behavior. * * @return BatchJobLogPeer */ public function getPeer() { if (self::$peer === null) { self::$peer = new BatchJobLogPeer(); } return self::$peer; }