protected function storeData(AbstractJob $job, $type, $data) { $table = $this->getTable(); $set = array($this->columnMap['job'] => $job->getId(), $this->columnMap['type'] => $type); $table->delete($set); $set[$this->columnMap['data']] = serialize($data); $table->insert($set); }