Commit 6d8fc652 authored by Eric GELOEN's avatar Eric GELOEN

Remove a type object if a type is overrided

parent b066e54f
...@@ -190,6 +190,10 @@ abstract class Type ...@@ -190,6 +190,10 @@ abstract class Type
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