Commit 5df86161 authored by Eric GELOEN's avatar Eric GELOEN Committed by Benjamin Eberlei

Remove a type object if a type is overrided

parent 42f429a2
...@@ -189,6 +189,10 @@ abstract class Type ...@@ -189,6 +189,10 @@ abstract class Type
if ( ! isset(self::$_typesMap[$name])) { if ( ! isset(self::$_typesMap[$name])) {
throw DBALException::typeNotFound($name); throw DBALException::typeNotFound($name);
} }
if (isset(self::$_typeObjects[$name])) {
unset(self::$_typeObjects[$name]);
}
self::$_typesMap[$name] = $className; self::$_typesMap[$name] = $className;
} }
......
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