final |
|---|
readonly |
Master data this module can take at a tenant's birth — partners, bank accounts, calendars: one kind of record per
attribute. Declared on the module, repeatable. The consultant fills the file master/{file}.json in the tenant's
template, the record class says what a record may hold, the loader writes the records — inserting only, before
go-live.
#[MasterData(entity: 'Partner', file: 'partners', record: PartnerRecord::class, loader: PartnersLoader::class)]
#[MasterData(entity: 'BankAccount', file: 'bank_accounts', record: BankAccountRecord::class,
loader: BankAccountsLoader::class, dependsOn: ['Partner'])]
final class PartnersModule extends AbstractUi5Module { … }
| Methods | ||
|---|---|---|
public
|
__construct(
string $entity,
string $file,
class-string $record,
class-string<MasterDataInterface> $loader,
list<string> $dependsOn = [],
)
|
# |
| Properties | |||
|---|---|---|---|
public
|
string
|
$entity
|
# |
public
|
string
|
$file
|
# |
public
|
class-string
|
$record
|
# |
public
|
class-string<MasterDataInterface>
|
$loader
|
# |
public
|
list<string>
|
$dependsOn
|
# |