From 56c088dd63a319edaff287c93f57fc7c615c0851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Thu, 7 Dec 2023 11:50:12 +0100 Subject: [PATCH] add todo --- src/Field/FileField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', ]));