This interface holds the information how a parent model relates to a child model.
applyTo(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objParent, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objChild) : void
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The object on which the condition shall be enforced on.
copyFrom(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $sourceModel, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $destinationModel) : void
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model on which the condition shall be enforced on.
getDestinationName() : string
string
getFilter(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objParent) : array
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model that shall get used as parent.
array
getFilterArray() : array
array
getInverseFilterArray() : array
array
getInverseFilterFor(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objChild) : array | null
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model that shall get used as child and for which the parent filter shall get retrieved.
array
null
getSetters() : array
array
getSourceName() : string
string
matches(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objParent, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objChild) : bool
bool
neededProperties() : array
array
setDestinationName(string $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
string
The name of the provider.
setFilterArray(array $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
array
The filter rules describing the relationship.
setInverseFilterArray(array $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
array
The filter rules to use when inverting the condition to look up the parent.
setSetters(array $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
array
The values to be applied to a model when it shall get set as child of another one.
setSourceName(string $value) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\ParentChildConditionInterface
string
The name of the provider.