Build a model, pre-initializing its metadata and its source.
By default, the name of the "obj type" (the model class name) is used to determine the metadata ident to load.
To load a custom metadata for the object, use the $metadataIdent
argument.
By default, the object's default source (from its metadata) is used as source.
To load a custom source for the object, use the $sourceIdent
argument.
Parameters
- $objType
- The object type of the Model.
- $metadataIdent
- Optional. The metadata ident of the object.
- $sourceIdent
- Optional. The custom source ident to load as source.
Returns
ModelInterface