mini\model()
Function
Documentation
Get model metadata (table name, primary key) for an entity class
Parses #[Table] and #[PrimaryKey] attributes. Results are cached per class. Follows the same pattern as validator() and metadata().
Signature
function model(string $class): mini\Database\ModelInfo
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$class |
string |
required | Documentation missing |