Table
in package
Specifies the database table name for a model.
Attributes
- #[Attribute]
- \Attribute::TARGET_CLASS
Table of Contents
Properties
- $name : string
- $primaryKey : string|null
Methods
- __construct() : mixed
- Constructor
Properties
$name read-only
public
string
$name
$primaryKey read-only
public
string|null
$primaryKey
= 'id'
Methods
__construct()
Constructor
public
__construct(string $name[, string|null $primaryKey = 'id' ]) : mixed
Parameters
- $name : string
-
The database table name
- $primaryKey : string|null = 'id'
-
The primary key column name (default: 'id')