Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (Nullable $nullable, ResourceConnection $resourceConnection, Comment $comment) | |
toDefinition (ElementInterface $column) | |
fromDefinition (array $data) | |
Data Fields | |
const | TYPE = 'BOOLEAN' |
const | INTEGER_TYPE = 'tinyint' |
const | INTEGER_PADDING = '1' |
As all MySQL aliases as BOOL or BOOLEAN are converted to TINYINT(1) proposed to processed tinyint as boolean.
Definition at line 19 of file Boolean.php.
__construct | ( | Nullable | $nullable, |
ResourceConnection | $resourceConnection, | ||
Comment | $comment | ||
) |
fromDefinition | ( | array | $data | ) |
Boolean is presented as tinyint(1).
Input always will be array of SQL definitions, like: 'type' => 'name VARCHAR(255)'\ 'nullable' => 'no'
array | $data |
Implements DbDefinitionProcessorInterface.
Definition at line 90 of file Boolean.php.
toDefinition | ( | ElementInterface | $column | ) |
\Magento\Framework\Setup\Declaration\Schema\Dto\Columns\Boolean | $column | Output always will be SQL definition. |
Implements DbDefinitionProcessorInterface.
Definition at line 72 of file Boolean.php.
const INTEGER_PADDING = '1' |
Padding for integer described below.
Definition at line 34 of file Boolean.php.
const INTEGER_TYPE = 'tinyint' |
Type of integer that is used in MySQL for boolean.
Definition at line 29 of file Boolean.php.
const TYPE = 'BOOLEAN' |
Type the column is persisted with.
Definition at line 24 of file Boolean.php.