public function addFailedRecord($record, $message)
    {
        $this->failedRecords[] = array('id' => $record->ID, 'class' => $record->ClassName, 'message' => $message);
        return $this;
    }
public function addFailedRecord($record, $message)
    {
        $this->failedRecords[] = array('id' => $record->ID, 'class' => $record->ClassName, 'message' => $message);
        return $this;
    }
public function addFailedRecord ( $ record , $ message ) { $ this -> failedRecords [ ] = array ( 'id' => $ record -> ID , 'class' => $ record -> ClassName , 'message' => $ message ) ; return $ this ; }
Add a record to the failed to modified list with its error message
@param DataObject $record the failed dataObject
@param string $message error message
@return $this
Add a record to the failed to modified list with its error message