Merge branch 'DDC-928'
This commit is contained in:
commit
eeca184836
@ -188,7 +188,6 @@ class ConvertDoctrine1Schema
|
|||||||
$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_AUTO);
|
$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_AUTO);
|
||||||
} else if (isset($column['sequence'])) {
|
} else if (isset($column['sequence'])) {
|
||||||
$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_SEQUENCE);
|
$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_SEQUENCE);
|
||||||
$metadata->setSequenceGeneratorDefinition($definition);
|
|
||||||
$definition = array(
|
$definition = array(
|
||||||
'sequenceName' => is_array($column['sequence']) ? $column['sequence']['name']:$column['sequence']
|
'sequenceName' => is_array($column['sequence']) ? $column['sequence']['name']:$column['sequence']
|
||||||
);
|
);
|
||||||
@ -198,6 +197,7 @@ class ConvertDoctrine1Schema
|
|||||||
if (isset($column['sequence']['value'])) {
|
if (isset($column['sequence']['value'])) {
|
||||||
$definition['initialValue'] = $column['sequence']['value'];
|
$definition['initialValue'] = $column['sequence']['value'];
|
||||||
}
|
}
|
||||||
|
$metadata->setSequenceGeneratorDefinition($definition);
|
||||||
}
|
}
|
||||||
return $fieldMapping;
|
return $fieldMapping;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user