Skip to content

Commit

Permalink
Also pass the field instance to the generated field callable
Browse files Browse the repository at this point in the history
  • Loading branch information
drtheuns committed Feb 17, 2020
1 parent b511655 commit c37cb3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Apitizer/Types/GeneratedField.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ public function __construct(QueryBuilder $queryBuilder, string $type, callable $

protected function getValue($row)
{
return call_user_func($this->generator, $row);
return call_user_func($this->generator, $row, $this);
}
}

0 comments on commit c37cb3c

Please sign in to comment.