Detailed Description
Instances of RDBOneToManyRelationDescription describe a one to many relation from 'this' end (one) to 'other' end (many) in a relational database.
Definition at line 21 of file RDBOneToManyRelationDescription.php.
Inheritance diagram for RDBOneToManyRelationDescription:Public Member Functions | |
| __construct ($thisType, $thisRole, $otherType, $otherRole, $thisMinMultiplicity, $thisMaxMultiplicity, $otherMinMultiplicity, $otherMaxMultiplicity, $thisAggregationKind, $otherAggregationKind, $thisNavigability, $otherNavigability, $hierarchyType, $idName, $fkName) | |
| getIdName () | |
| getFkName () | |
Public Member Functions inherited from RelationDescription | |
| __construct ($thisType, $thisRole, $otherType, $otherRole, $thisMinMultiplicity, $thisMaxMultiplicity, $otherMinMultiplicity, $otherMaxMultiplicity, $thisAggregationKind, $otherAggregationKind, $thisNavigability, $otherNavigability, $hierarchyType) | |
| isMultiValued () | |
| getThisType () | |
| getThisMapper () | |
| getThisRole () | |
| getOtherType () | |
| getOtherMapper () | |
| getOtherRole () | |
| getThisMinMultiplicity () | |
| getThisMaxMultiplicity () | |
| getOtherMinMultiplicity () | |
| getOtherMaxMultiplicity () | |
| getThisAggregationKind () | |
| getOtherAggregationKind () | |
| getThisNavigability () | |
| getOtherNavigability () | |
| getHierarchyType () | |
| isSameRelation (RelationDescription $other) | |
Protected Attributes | |
| $idName = '' | |
| $fkName = '' | |
Protected Attributes inherited from RelationDescription | |
| $thisType = '' | |
| $thisRole = '' | |
| $otherType = '' | |
| $otherRole = '' | |
| $thisMinMultiplicity = '0' | |
| $thisMaxMultiplicity = 'unbound' | |
| $otherMinMultiplicity = '0' | |
| $otherMaxMultiplicity = 'unbound' | |
| $thisAggregationKind = 'none' | |
| $otherAggregationKind = 'none' | |
| $thisNavigability = true | |
| $otherNavigability = true | |
| $hierarchyType = 'undefined' | |
Constructor & Destructor Documentation
◆ __construct()
| __construct | ( | $thisType, | |
| $thisRole, | |||
| $otherType, | |||
| $otherRole, | |||
| $thisMinMultiplicity, | |||
| $thisMaxMultiplicity, | |||
| $otherMinMultiplicity, | |||
| $otherMaxMultiplicity, | |||
| $thisAggregationKind, | |||
| $otherAggregationKind, | |||
| $thisNavigability, | |||
| $otherNavigability, | |||
| $hierarchyType, | |||
| $idName, | |||
| $fkName | |||
| ) |
Constructor.
- Parameters
-
$thisType The PersistentObject type at this end $thisRole The role name at this end $otherType The PersistentObject type at the other end $otherRole The role name at the other end $thisMinMultiplicity The minimum number of instances at this end (number or 'unbound') $thisMaxMultiplicity The maximum number of instances at this end (number or 'unbound') $otherMinMultiplicity The minimum number of instances at the other end (number or 'unbound') $otherMaxMultiplicity The maximum number of instances at the other end (number or 'unbound') $thisAggregationKind The aggregation kind at this end ('none', 'shared' or 'composite') $otherAggregationKind The aggregation kind at the other end ('none', 'shared' or 'composite') $thisNavigability Boolean whether this end is navigable from the other end or not $otherNavigability Boolean whether the other end is navigable from this end or not $hierarchyType The hierarchy type that the other end has in relation to this end ('parent', 'child', 'undefined') $idName The name of the attribute in 'this' end's type, that is referenced by the foreign key attribute in the 'other' end's type $fkName The name of the foreign key attribute in the 'other' end's type
Definition at line 44 of file RDBOneToManyRelationDescription.php.
Member Function Documentation
◆ getIdName()
| getIdName | ( | ) |
Get the name of the attribute in 'this' end's type, that is referenced by the foreign key attribute in the 'other' end's type.
- Returns
- String
Definition at line 61 of file RDBOneToManyRelationDescription.php.
◆ getFkName()
| getFkName | ( | ) |
Get the name of the foreign key attribute in the 'other' end's type.
- Returns
- String
Definition at line 69 of file RDBOneToManyRelationDescription.php.
Member Data Documentation
◆ $idName
|
protected |
Definition at line 23 of file RDBOneToManyRelationDescription.php.
◆ $fkName
|
protected |
Definition at line 24 of file RDBOneToManyRelationDescription.php.