protected function IntColumnHandlerSQLite::createBody in Dynamic Entity Reference 8.2
Creates the body of the trigger.
Creates a part of the statement to set the value of the integer column to the integer value of the string column.
Parameters
string $column_int: The name of the target_id_int column.
string $column: The name of the target_id column.
Overrides IntColumnHandler::createBody
File
- src/
Storage/ IntColumnHandlerSQLite.php, line 13
Class
- IntColumnHandlerSQLite
- SQLite implementation of denormalizing into integer columns.
Namespace
Drupal\dynamic_entity_reference\StorageCode
protected function createBody($column_int, $column) {
return "{$column_int} = CAST({$column} AS INTEGER)";
}