/**
  * @param SQL_TABLE $table
  * @param integer $action
  * @param STORABLE $obj
  * @access private
  */
 protected function _commit_table($table, $action, $obj)
 {
     if ($table->name == $obj->secondary_table_name() && $action == Storage_action_create) {
         $table->update('entry_id', $obj->entry_id);
     }
     parent::_commit_table($table, $action, $obj);
     if ($table->name == $obj->table_name() && $action == Storage_action_create) {
         $obj->entry_id = $obj->id;
     }
 }
Exemplo n.º 2
0
 /**
  * Commits changes to a single table in a storage action.
  * @param SQL_TABLE $table
  * @param integer $action
  * @param STORABLE $obj
  * @access private
  */
 protected function _commit_table($table, $action, $obj)
 {
     $table->commit($action);
 }