---
title: "hasOrderedToManyRelationship(forKey:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsscriptclassdescription/hasorderedtomanyrelationship(forkey:)"
---

# hasOrderedToManyRelationship(forKey:)

Returns a Boolean value indicating whether the described class has an ordered to-many relationship identified by the specified key.

## Declaration

```swift
func hasOrderedToManyRelationship(forKey key: String) -> Bool
```

## Parameters

- `key`: The identifying key for a property of the receiver.

## Return Value

Return Value true if the described class has an ordered to-many relationship identified by the specified key; otherwise, false.

## See Also

### Getting attribute and relationship information

- [hasProperty(forKey:)](foundation/nsscriptclassdescription/hasproperty(forkey:).md)
- [hasReadableProperty(forKey:)](foundation/nsscriptclassdescription/hasreadableproperty(forkey:).md)
- [hasWritableProperty(forKey:)](foundation/nsscriptclassdescription/haswritableproperty(forkey:).md)
- [key(withAppleEventCode:)](foundation/nsscriptclassdescription/key(withappleeventcode:).md)
- [type(forKey:)](foundation/nsscriptclassdescription/type(forkey:).md)
