RDBManyToManyRelationDescription Class Reference

Detailed Description

Instances of RDBManyToManyRelationDescription describe a many to many relation from 'this' end to 'other' end in a relational database.

This relation is always realized by a connecting database table and can be resolved into a many-to-one relation from 'this' end to the relation type and a one-to-many relation from the relation type to the 'other' end.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 26 of file RDBManyToManyRelationDescription.php.

+ Inheritance diagram for RDBManyToManyRelationDescription:

Public Member Functions

 __construct (RDBOneToManyRelationDescription $thisEndRelation, RDBManyToOneRelationDescription $otherEndRelation)
 
 getThisEndRelation ()
 
 getOtherEndRelation ()
 
 isMultiValued ()
 
 getThisType ()
 
 getThisRole ()
 
 getOtherType ()
 
 getOtherRole ()
 
 getThisMinMultiplicity ()
 
 getThisMaxMultiplicity ()
 
 getOtherMinMultiplicity ()
 
 getOtherMaxMultiplicity ()
 
 getThisAggregationKind ()
 
 getOtherAggregationKind ()
 
 getThisNavigability ()
 
 getOtherNavigability ()
 
 getHierarchyType ()
 
- Public Member Functions inherited from RelationDescription
 __construct ($thisType, $thisRole, $otherType, $otherRole, $thisMinMultiplicity, $thisMaxMultiplicity, $otherMinMultiplicity, $otherMaxMultiplicity, $thisAggregationKind, $otherAggregationKind, $thisNavigability, $otherNavigability, $hierarchyType)
 
 getThisMapper ()
 
 getOtherMapper ()
 
 isSameRelation (RelationDescription $other)
 

Protected Attributes

 $thisEndRelation = ''
 
 $otherEndRelation = ''
 
- 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 ( RDBOneToManyRelationDescription  $thisEndRelation,
RDBManyToOneRelationDescription  $otherEndRelation 
)

Constructor.

See also
RelationDescription::__construct
Parameters
$thisEndRelationThe RDBOneToManyRelationDescription describing the relation between 'this' end and the connecting type
$otherEndRelationThe RDBManyToOneRelationDescription describing the relation between the connecting type and the 'other' end

Definition at line 37 of file RDBManyToManyRelationDescription.php.

Member Function Documentation

◆ getThisEndRelation()

getThisEndRelation ( )

Get the RDBOneToManyRelationDescription describing the relation between 'this' end and the connecting type.

Returns
RelationDescription

Definition at line 47 of file RDBManyToManyRelationDescription.php.

◆ getOtherEndRelation()

getOtherEndRelation ( )

Get the RDBManyToOneRelationDescription describing the relation between the connecting type and the 'other' end.

Returns
RelationDescription

Definition at line 56 of file RDBManyToManyRelationDescription.php.

◆ isMultiValued()

isMultiValued ( )
See also
RelationDescription::isMultiValued

Reimplemented from RelationDescription.

Definition at line 63 of file RDBManyToManyRelationDescription.php.

◆ getThisType()

getThisType ( )
See also
RelationDescription::getThisType

Reimplemented from RelationDescription.

Definition at line 70 of file RDBManyToManyRelationDescription.php.

◆ getThisRole()

getThisRole ( )
See also
RelationDescription::getThisRole

Reimplemented from RelationDescription.

Definition at line 77 of file RDBManyToManyRelationDescription.php.

◆ getOtherType()

getOtherType ( )
See also
RelationDescription::getOtherType

Reimplemented from RelationDescription.

Definition at line 84 of file RDBManyToManyRelationDescription.php.

◆ getOtherRole()

getOtherRole ( )
See also
RelationDescription::getOtherRole

Reimplemented from RelationDescription.

Definition at line 91 of file RDBManyToManyRelationDescription.php.

◆ getThisMinMultiplicity()

getThisMinMultiplicity ( )

◆ getThisMaxMultiplicity()

getThisMaxMultiplicity ( )

◆ getOtherMinMultiplicity()

getOtherMinMultiplicity ( )

◆ getOtherMaxMultiplicity()

getOtherMaxMultiplicity ( )

◆ getThisAggregationKind()

getThisAggregationKind ( )

◆ getOtherAggregationKind()

getOtherAggregationKind ( )

◆ getThisNavigability()

getThisNavigability ( )

◆ getOtherNavigability()

getOtherNavigability ( )

◆ getHierarchyType()

getHierarchyType ( )

Member Data Documentation

◆ $thisEndRelation

$thisEndRelation = ''
protected

Definition at line 28 of file RDBManyToManyRelationDescription.php.

◆ $otherEndRelation

$otherEndRelation = ''
protected

Definition at line 29 of file RDBManyToManyRelationDescription.php.