- WIP on Alter table for lean-console

This commit is contained in:
mcndave committed 2023-03-30 15:24:48 +00:00
1 parent 9514a46ae7
commit 2ad52aba85
11 files changed
+63 -11

No files matched your search

+6 -1
View File
@@ -2,6 +2,8 @@
namespace Ulmus\Attribute\Property\Field;
use Ulmus\Attribute\Attribute;
/**
* Since we need consistancy between the declaration of our ID and FK fields, it
* was decided to extend the PK class instead of Field for this case.
@@ -20,5 +22,8 @@ class ForeignKey extends PrimaryKey {
public bool $nullable = false,
public mixed $default = null,
public bool $readonly = false,
) {}
public null|array|string|\Stringable $references = null,
) {
$this->references = Attribute::handleArrayField($this->references);
}
}