AbstractMetaModel Class
Aurora\Database\Model Namespace
Extends
Interfaces
- I JsonSerializable
Properties
meta_table
Metadata table name
protected static $meta_table = '': string
meta_field
Metadata foreign key field
protected static $meta_field = '': string
Constructor
__construct
Constructor
Parameters
Aurora\Database\Query\Query
$query
— Query object
Signature
public function __construct(Aurora\Database\Query\Query $query)
Methods
getMetadata
Get metadata
Parameters
-
string
$name
— Field name -
mixed
$default
— Default value
Return Value
mixed
Signature
public function getMetadata(string $name = '', mixed $default = '')
setMetadata
Set metadata
Parameters
-
mixed
$name
— Field name -
mixed
$value
— Field value
Return Value
void
Signature
public function setMetadata(mixed $name, mixed $value = ''): void