/** * Save all attributes after an insert. * * @param Doctrine_Event $event Event. * * @return void */ public function postInsert(Doctrine_Event $event) { $data = $event->getInvoker(); if (!isset($data['__META__'])) { return; } $tableName = $this->getTableNameFromEvent($event); $idColumn = $this->getIdColumnFromEvent($event); $dataForObjectUtil = array(); $dataForObjectUtil[$idColumn] = $data[$idColumn]; $dataForObjectUtil['__META__'] = $data['__META__']; if ($dataForObjectUtil['__META__'] instanceof ArrayObject) { $dataForObjectUtil['__META__'] = $dataForObjectUtil['__META__']->getArrayCopy(); } ObjectUtil::insertObjectMetaData($dataForObjectUtil, $tableName, $idColumn); }