Class LaravelUi5\Sdk\Tms\Attributes\Unique

final
readonly

A field of a record class whose value must be unique beyond its record — across the whole file, within the scope of the fields within names: the old system's account number of a personal account is unique per role, for its customer 10001 and its supplier 10001 live in two ledgers. The key needs no #[Unique]: it is unique already. Checked before anything is written, against the files and the database — the record's loader answers for the database through {@see \LaravelUi5\Sdk\Tms\Contracts\UniqueValuesInterface}.

#[Unique(within: ['role'])] public ?string $ext_ref = null,
Methods
Properties