Skip to content

Commit 3c7a105

Browse files
committed
DEBUG custom field class for ID
1 parent 2faed34 commit 3c7a105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ protected function init(): void
459459
$this->_init();
460460

461461
if ($this->id_field) {
462-
$this->addField($this->id_field, ['type' => 'integer', 'required' => true, 'system' => true]);
462+
$this->addField($this->id_field, [get_class(new class() extends Field {}), 'type' => 'integer', 'required' => true, 'system' => true]);
463463
} else {
464464
return; // don't declare actions for model without id_field
465465
}

0 commit comments

Comments
 (0)