public function convertToDatabaseValue($value) { if ($value !== null && !is_array($value)) { throw RiakException::invalidValueForType('Hash', array('array', 'null'), $value); } return $value !== null ? (object) $value : null; }
public function convertToDatabaseValue($value) { if ($value !== null && !is_array($value)) { throw RiakException::invalidValueForType('Collection', array('array', 'null'), $value); } return $value !== null ? array_values($value) : null; }