mirror of
https://github.com/danog/AsyncOrm.git
synced 2024-11-30 04:39:45 +01:00
Finalize
This commit is contained in:
parent
a46f07079a
commit
4578655304
@ -48,6 +48,10 @@ final class OrmMappedArray
|
|||||||
* @var int<1, max>|null
|
* @var int<1, max>|null
|
||||||
*/
|
*/
|
||||||
public readonly ?int $optimizeIfWastedGtMb = null,
|
public readonly ?int $optimizeIfWastedGtMb = null,
|
||||||
|
/**
|
||||||
|
* Table name postfix, if null defaults to the property name.
|
||||||
|
*/
|
||||||
|
public readonly ?string $tablePostfix = null
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ abstract class DbObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
$config = new FieldConfig(
|
$config = new FieldConfig(
|
||||||
$config->table.'_'.$property->getName(),
|
$config->table.'_'.($attr->tablePostfix ?? $property->getName()),
|
||||||
$settings,
|
$settings,
|
||||||
$attr->keyType,
|
$attr->keyType,
|
||||||
$attr->valueType,
|
$attr->valueType,
|
||||||
|
Loading…
Reference in New Issue
Block a user