public function replace($attributes, $runValidation=true)
    {
        // Validation
        if ($runValidation && false===$attributes=$this->validate($attributes, true))
            return false; 
        
        $this->_attrEventBeforeInsert($attributes);

        return $this->_db->replace($this->table, $attributes);
    }
public function replace($attributes, $runValidation=true)
    {
        // Validation
        if ($runValidation && false===$attributes=$this->validate($attributes, true))
            return false; 
        
        $this->_attrEventBeforeInsert($attributes);

        return $this->_db->replace($this->table, $attributes);
    }
public function replace ( $ attributes , $ runValidation = true ) { // Validation if ( $ runValidation && false === $ attributes = $ this -> validate ( $ attributes , true ) ) return false ; $ this -> _attrEventBeforeInsert ( $ attributes ) ; return $ this -> _db -> replace ( $ this -> table , $ attributes ) ; }
Replace a row with Timestamps feature into the associated database table using the attribute values of this record.

@param array $attributes
@param boolean $runValidation Whether to perform validation (calling validate()) before manipulate the record.
@return bool Result
@example
$result = $this->Model->replace([
'id' => 1,
'name' => 'Nick Tsai',
'email' => 'myintaer@gmail.com',
]);
Replace a row with Timestamps feature into the associated database table using the attribute values of this record .