Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Type::lookupName() shortcut method (#6130)
| Q | A |------------- | ----------- | Type | feature | Fixed issues | n/a #### Summary `Type` class has static methods for global `TypeRegistry` instance shorter access like `Type::getType`. This feature adds a static method for `TypeRegistry::lookupName`. Thanks to #6082, the reverse lookup is O(1) thus fine to be used massively - for ex. schema introspection returns type as object, and this method is needed to obtain a string name. In DBAL 4.0, the method can be renamed to `Type::getName(Type $type): string` to be more consistent with `Type::getType(string $name): Type`.
- Loading branch information