[DBAL-319] Doctrine\DBAL\Types\Type Created: 12/Aug/12 Updated: 22/Dec/13
The API could be improved in the next major release:
Etc.. I think the 'type' in the methods is redundant since Type is already the object I am dealing with.
I'd also like a remove() method to unregister a type at runtime. Would make testing a little easier and I don't have to check with hasType() etc..
|Comment by Marco Pivetta [ 12/Aug/12 ]|
I don't think those namings are really important.
|Comment by Till [ 12/Aug/12 ]|
I agree on the static. But I'd also like the API to be cleaned up and the remove method.
|Comment by Steve Müller [ 22/Dec/13 ]|
API cleanup and staticness can be addressed in 3.0 for the first time. Otherwise we cannot keep BC. You can use Doctrine\DBAL\Types\Type::overrideType('someType', null); as a workaround for removing a type from the registry.