Skip to content

Commit

Permalink
fix(graphql): @searchByOperatorRelation will correctly determine na…
Browse files Browse the repository at this point in the history
…me of Relation ("Property `Model::()` is not a relation.").
  • Loading branch information
LastDragon-ru committed Aug 18, 2022
1 parent f11ef1f commit b28362e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function call(Handler $handler, object $builder, Property $property, Argu
// * where + notExists = doesntHave

// Conditions
$property = $property->getParent();
$relation = (new ModelHelper($builder))->getRelation($property->getName());
$has = $argument->value->arguments['where'] ?? null;
$hasCount = $argument->value->arguments['count'] ?? null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public function testCall(
}

$operator = $this->app->make(Relation::class);
$property = $property->getChild('operator name should be ignored');
$argument = $argumentFactory($this);
$search = $this->app->make(Directive::class);
$builder = $builderFactory($this);
Expand Down

0 comments on commit b28362e

Please sign in to comment.