code: public static function convertValuesToDatabase($values)
      {
          if (!(isset($values['bin']) && isset($values['value']) && isset($values['path']))) {
              throw new InvalidArgumentException('Invalid file array');
          }
  
          $bin = array();
          foreach ($values['bin'] as $value) {
              $bin[] = $value;
          }
  
          return $bin;
      }
docs: Convert an array of values handled by MetaModels to a value to be stored in the database (array of bin uuid).
  
  The input array must have the following layout:
  array(
  'bin'   => array() // list of the binary ids.
  'value' => array() // list of the uuids.
  'path'  => array() // list of the paths.
  'meta'  => array() // list of the meta data.
  )
  
  @param array $values The values to convert.
  
  @return array
  
  @throws InvalidArgumentException When the input array is invalid.