Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string lowercase
<?php strtolower(string $string): string
<?php throw Exception::typeNotFound($doctrineType);
}
$dbType = strtolower($dbType);
$this->doctrineTypeMapping[$dbType] = $doctrineType;
$doctrineType = Type::getType($doctrineType);
<?php $this->initializeAllDoctrineTypeMappings();
}
$dbType = strtolower($dbType);
if (! isset($this->doctrineTypeMapping[$dbType])) {
throw new Exception(
<?php $this->initializeAllDoctrineTypeMappings();
}
$dbType = strtolower($dbType);
return isset($this->doctrineTypeMapping[$dbType]);
}
<?php if (in_array(strtolower(trim($value)), $this->booleanLiterals['false'], true)) {
return $callback(false);
}
<?php return $callback(false);
}
if (in_array(strtolower(trim($value)), $this->booleanLiterals['true'], true)) {
return $callback(true);
}
<?php public function convertFromBoolean($item)
{
if ($item !== null && in_array(strtolower($item), $this->booleanLiterals['false'], true)) {
return false;
}
<?php $columnSql = [];
foreach ($table->getColumns() as $columnName => $column) {
$columnName = strtolower($columnName);
$columns[$columnName] = $column;
$oldColumnNames[$columnName] = $newColumnNames[$columnName] = $column->getQuotedName($this);
}
<?php continue;
}
$columnName = strtolower($columnName);
if (! isset($columns[$columnName])) {
continue;
}
<?php continue;
}
$columns[strtolower($columnName)] = $column;
}
$sql = [];
<?php private function replaceColumn($tableName, array $columns, $columnName, Column $column): array
{
$keys = array_keys($columns);
$index = array_search(strtolower($columnName), $keys, true);
if ($index === false) {
throw SchemaException::columnDoesNotExist($columnName, $tableName);
<?php $values = array_values($columns);
$keys[$index] = strtolower($column->getName());
$values[$index] = $column;
return array_combine($keys, $values);
<?php $columns = [];
foreach ($fromTable->getColumns() as $columnName => $column) {
$columns[strtolower($columnName)] = $column->getName();
}
foreach ($diff->removedColumns as $columnName => $column) {
<?php }
foreach ($diff->removedColumns as $columnName => $column) {
$columnName = strtolower($columnName);
if (! isset($columns[$columnName])) {
continue;
}
<?php foreach ($diff->renamedColumns as $oldColumnName => $column) {
$columnName = $column->getName();
$columns[strtolower($oldColumnName)] = $columnName;
$columns[strtolower($columnName)] = $columnName;
}
<?php foreach ($diff->renamedColumns as $oldColumnName => $column) {
$columnName = $column->getName();
$columns[strtolower($oldColumnName)] = $columnName;
$columns[strtolower($columnName)] = $columnName;
}
foreach ($diff->changedColumns as $oldColumnName => $columnDiff) {