map($rowData, $this); $this->dateOccurred = strtotime($this->dateOccurred); $this->responseTimestamp = strtotime($this->responseTimestamp); $this->errors = unserialize($this->errors); } function toRow() { $row = new stdClass(); $modelMapper = new WPAM_Data_Models_ModelMapper(); $modelMapper->map($this, $row, false); $row->dateOccurred = date('Y-m-d H:i:s', $row->dateOccurred); $row->responseTimestamp = date('Y-m-d H:i:s', $row->responseTimestamp); $row->errors = serialize($row->errors); return $row; } }