Default implementation of a parent child relationship.
applyTo($objParent, $objChild)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
For invalid setters. |
---|
copyFrom($sourceModel, $destinationModel)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
For invalid setters. |
---|
getDestinationName()
getFilter($objParent)
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
when an empty parent model is given. |
---|
getFilterArray()
getInverseFilterArray()
getInverseFilterFor($objChild)
getSetters()
getSourceName()
matches($objParent, $objChild)
neededProperties()
parseFilter(array $filter, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : array
array
The filter rule to which the values shall get applied.
array
setDestinationName($value)
setFilterArray($value)
setInverseFilterArray($value)
setSetters($value)
setSourceName($value)
prepareRule(array $rule, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $child) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ModelRelationship\array.
array
The rule to prepare.
extractNeededProperties(array $rule) : array
array
The filter rule from which the properties shall be extracted from.
\RuntimeException |
When an unexpected filter rule is encountered. |
---|
array
isValidSetter(array $setter) : bool
array
The setter.
bool
$destinationProvider : string
$filter : array
$inverseFilter : array
$setOn : array
$sourceProvider : string
$neededProperties : array