protected static function modifyToDb($data)
 {
     $result = array();
     foreach ($data as $name => $value) {
         if ($name == 'date' && $value instanceof \DateTime) {
             $value = DateTime::createFromPhp($value);
         }
         if (in_array($name, array('originalData', 'updateData'))) {
             $value = \WS\Migrations\arrayToJson($value);
         }
         $result[$name] = $value;
     }
     return $result;
 }
 /**
  * @param array $value
  * @return $this
  */
 private function _saveData(array $value = null)
 {
     $this->_file->putContents(\WS\Migrations\arrayToJson($value));
     return $this;
 }