private function getChangedColumns($tableName, TableDiff $diff) { /** @var $col \Doctrine\DBAL\Schema\ColumnDiff */ foreach ($diff->changedColumns as $col) { $this->addMessage($tableName, sprintf('invalid column `%s`', $col->oldColumnName)); } }