record id type

This commit is contained in:
Yuri Kuznetsov
2023-02-19 16:47:09 +02:00
parent cbf6b0cc6b
commit 5ba16b4c27
@@ -41,7 +41,9 @@ class DefaultRecordIdGenerator implements RecordIdGenerator
public function __construct(Metadata $metadata)
{
$this->isUuid = $metadata->get(['app', 'recordId', 'dbType']) === 'uuid';
$this->isUuid =
$metadata->get(['app', 'recordId', 'type']) === 'uuid4' ||
$metadata->get(['app', 'recordId', 'dbType']) === 'uuid';
}
public function generate(): string