Extracted at 2014-06-26.
pike.ida.liu.se
[Top]
Fins
Fins.Model
Fins.Model.InverseForeignKeyReference

Class Fins.Model.InverseForeignKeyReference

Description

This relationship represents one half of a one-to-many or parent-and-child between one type and another. The "parent" uses the "inverse" relationship because it does not contain a reference to the child itself.

Put more technically, this relationship can be used to access objects of another type (the child) using a field on that type containing the object id of an object of this (the parent) type.

For example:

A type "user" has a primary key field id. A type "preference" has a foreign key field "user_id" that indicates the user for which that preference is associated. The definition of the "preference" type would contain a reference for the foreign key (a Fins.Model.ForeignKeyRelationship ) whereas the "user" object definition would contain the inverse relationship (Fins.Model.InverseForeignKeyRelationship ) which could be used to find all "preference" objects owned by that user.


Inherit Relationship

inherit .Relationship : Relationship