/** * Unset an item in the array * * Required by interface ArrayAccess * * @param int $offset * @return void */ public function offsetUnset($offset) { ObjectArray::offsetUnset($offset); }
/** * Remove a property * * This function will reset required properties to their default value, not required properties will be unset. * * @param string $name The property name. * @return DatabaseRowAbstract */ public function removeProperty($name) { if ($this->isConnected()) { $column = $this->getTable()->getColumn($name); if (isset($column) && $column->required) { $this->setProperty($this->_data[$name], $column->default); } else { parent::offsetUnset($name); unset($this->__modified_properties[$name]); } } return $this; }
/** * Remove a property * * @param string $name The property name. * @return ModelEntityAbstract */ public function removeProperty($name) { parent::offsetUnset($name); unset($this->__modified_properties[$name]); return $this; }
/** * Remove a row field * * @param string $column The column name. * @return void */ public function offsetUnset($column) { parent::offsetUnset($column); unset($this->_modified[$column]); }