Commit 6c3b6d03 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #86 from egeloen/patch-1

Remove a type object if a type is overrided
parents 6f7bc495 6d8fc652
...@@ -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