This interface describes the relationships between data providers.

It holds a root condition for the root data provider and many parent child relationships.

 Methods

Add a parent child condition.

addChildCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface $condition) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\ModelRelationshipDefinitionInterface

Retrieve the parent child condition for the current table.

getChildCondition(string $srcProvider, string $dstProvider) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface

Parameters

$srcProvider

string

The parenting table.

$dstProvider

string

The child table.

Returns

Retrieve the parent child conditions for the current table.

getChildConditions(string $srcProvider) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface[]

Parameters

$srcProvider

string

The parenting table for which child conditions shall be assembled for (optional).

Returns

Set the root condition for the current table.

setRootCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\RootConditionInterface $condition) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\ModelRelationshipDefinitionInterface

 Constants

 

The name of the definition.

NAME