Column
in package
Maps a property to a database column.
Attributes
- #[Attribute]
- \Attribute::TARGET_PROPERTY
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor
Properties
$name read-only
public
string|null
$name
= null
$nullable read-only
public
bool
$nullable
= false
$type read-only
public
string|null
$type
= null
Methods
__construct()
Constructor
public
__construct([string|null $name = null ][, string|null $type = null ][, bool $nullable = false ]) : mixed
Parameters
- $name : string|null = null
-
The database column name (if different from property name)
- $type : string|null = null
-
The data type (string, int, float, bool, datetime, json)
- $nullable : bool = false
-
Whether the column can be null