Index: ConvertDoctrine1Schema.php =================================================================== --- ConvertDoctrine1Schema.php (revision 6580) +++ ConvertDoctrine1Schema.php (working copy) @@ -143,6 +143,11 @@ $column = array(); $column['type'] = $string; } + // check if a column alias was used (column_name as field_name) + if (preg_match("/(\w+)\sas\s(\w+)/i", $name, $matches)) { + $name = $matches[1]; + $column['alias'] = $matches[2]; + } if (preg_match("/([a-zA-Z]+)\(([0-9]+)\)/", $column['type'], $matches)) { $column['type'] = $matches[1]; $column['length'] = $matches[2];