This commit is contained in:
Daniil Gentili 2024-03-25 20:36:20 +01:00
parent a46f07079a
commit 4578655304
2 changed files with 5 additions and 1 deletions

View File

@ -48,6 +48,10 @@ final class OrmMappedArray
* @var int<1, max>|null
*/
public readonly ?int $optimizeIfWastedGtMb = null,
/**
* Table name postfix, if null defaults to the property name.
*/
public readonly ?string $tablePostfix = null
) {
}
}

View File

@ -73,7 +73,7 @@ abstract class DbObject
}
$config = new FieldConfig(
$config->table.'_'.$property->getName(),
$config->table.'_'.($attr->tablePostfix ?? $property->getName()),
$settings,
$attr->keyType,
$attr->valueType,