RelationExistenceHelper
class RelationExistenceHelper
Report relation names, such as those an eager load or relationship query names, that a model does not define.
Methods
__construct(ModelRuleHelper $modelRuleHelper, ModelHelper $modelHelper, ModelRelationsExtension $modelRelations, RuntimeInputs $runtimeInputs)
Create a relation existence helper.
array
check(Type $relations, Type $modelType, Node $node, Scope $scope, bool $aggregate = false, bool $selectsColumns = true, bool $followsPaths = true)
Report each relation, or segment of a dotted relation path, that the queried model does not define.
Details
at line 45
__construct(ModelRuleHelper $modelRuleHelper, ModelHelper $modelHelper, ModelRelationsExtension $modelRelations, RuntimeInputs $runtimeInputs)
Create a relation existence helper.
at line 61
array
check(Type $relations, Type $modelType, Node $node, Scope $scope, bool $aggregate = false, bool $selectsColumns = true, bool $followsPaths = true)
Report each relation, or segment of a dotted relation path, that the queried model does not define.