Commit eebb7c7e authored by beberlei's avatar beberlei

[2.0] DDC-277 - Remove support "default" option in metadata mappings, but keep...

[2.0] DDC-277 - Remove support "default" option in metadata mappings, but keep it as a concept in DBAL layer to support for example versionable entities.
parent 2036c958
......@@ -192,10 +192,6 @@ class AnnotationDriver implements Driver
$mapping['options'] = $columnAnnot->options;
}
if (isset($columnAnnot->default)) {
$mapping['default'] = $columnAnnot->default;
}
if (isset($columnAnnot->name)) {
$mapping['columnName'] = $columnAnnot->name;
}
......
......@@ -102,7 +102,6 @@ class DatabaseDriver implements Driver
$fieldMapping['unsigned'] = $column->getUnsigned();
}
$fieldMapping['notnull'] = $column->getNotNull();
$fieldMapping['default'] = $column->getDefault();
if (isset($fieldMapping['id'])) {
$ids[] = $fieldMapping;
......
......@@ -60,7 +60,6 @@ final class Column extends Annotation {
public $scale = 0; // The scale for a decimal (exact numeric) column (Applies only for decimal column)
public $unique = false;
public $nullable = false;
public $default; //TODO: remove?
public $name;
public $options = array();
public $columnDefinition;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment