Initializes and returns a reference object that points to the specified record object.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The target record of the reference.
An initialized reference object that points to the specified record, or
nil if the reference cannot be initialized.
Use this method to initialize a reference to a local record object. The local record can be one that you just created or one that you fetched previously from the server.
When you create a reference object for use in a search predicate, the predicate ignores the value in the
action parameter. Search predicates use only the ID of the record during their comparison.