fromString

fun fromString(targetCollection: EntityCollection, referenceString: String): ReferenceProperty(source)

Creates a new instance given the entity collection that will be used to resolve it and a string indicating the target entity id and property. The format of the string is "objectId#foo.bar", where # separates the id from property path and . separates sub-properties. If the reference identifier or or any sub-properties contains a # . or \ they must be escaped.

Return

A new instance of ReferenceProperty.

See also