diff --git a/src/Grid/Column.php b/src/Grid/Column.php index 3ceceb0..29101cf 100644 --- a/src/Grid/Column.php +++ b/src/Grid/Column.php @@ -56,6 +56,10 @@ public function getValue(object|array $entity) return $valueCallback($entity, $extra ?? []); } + if ($this->value === null) { + return isset($extra) ? [$entity, $extra] : $entity; + } + try { return (PropertyAccess::createPropertyAccessor())->getValue($entity, $this->value); } catch (NoSuchPropertyException $e) {