classes/database/orm.php
/**
	 * Callback invoked before the row is insert.
	 * Can be extended by the child model.
	 *
	 * @param $data the array of columns being updated
	 * @return array
	 */
Callback invoked before the row is insert.
Can be extended by the child model.

@param $data the array of columns being updated
@return array
Callback invoked before the row is insert . Can be extended by the child model . @param $data the array of columns being updated @return array
protected function insert(array $data = NULL)
	{
		$id = $this->_db->insert($this->name(), $data);
		$this->_object[$this->_primary_key] = $id;
		$this->loaded = $this->saved = TRUE;
	}
protected function insert ( array $ data = NULL ) { $ id = $ this -> _db -> insert ( $ this -> name ( ) , $ data ) ; $ this -> _object [ $ this -> _primary_key ] = $ id ; $ this -> loaded = $ this -> saved = TRUE ; }
Callback invoked before the row is insert.
Callback invoked before the row is insert .
// Execute Insert Statement // Load the insert id as the primary key // Object is now loaded and saved