Solar_Sql_Model::insert()

public int|bool Solar_Sql_Model::insert ( array $data )

Inserts one row to the model table and deletes cache entries.

Parameters

  • (array) $data: The row data to insert.

Returns

  • (int|bool) On success, the last inserted ID if there is an auto-increment column on the model (otherwise boolean true). On failure an exception from PDO bubbles up.

Description

Inserts one row to the model table and deletes cache entries.

See Also



Local