diff --git a/src/Field/FileField.php b/src/Field/FileField.php index 9e03412..b86a0b8 100644 --- a/src/Field/FileField.php +++ b/src/Field/FileField.php @@ -43,7 +43,7 @@ protected function init(): void } $this->reference = HasOneSql::assertInstanceOf($this->getOwner()->hasOne($this->shortName, [ - 'type' => $this->fileModel->getField('token')->type, + 'type' => $this->fileModel->getField('token')->type, // TODO imply in https://github.com/atk4/data/blob/develop/src/Reference/HasOne.php#L27 'model' => $this->fileModel, 'theirField' => 'token', ]));