Back to TableInterface class

Method store

public bool
store
(mixed $updateNulls = false)
Method to store a row in the database from the TableInterface instance properties.
Parameters
  • bool $updateNulls True to update fields even if they are null.
Returns
  • bool True on success.
Since
  • 3.2

Method store - Source code

/**
 * Method to store a row in the database from the TableInterface instance properties.
 *
 * If a primary key value is set the row with that primary key value will be updated with the instance property values.
 * If no primary key value is set a new row will be inserted into the database with the properties from the TableInterface instance.
 *
 * @param   boolean  $updateNulls  True to update fields even if they are null.
 *
 * @return  boolean  True on success.
 *
 * @since   3.2
 */
public function store($updateNulls = false);