You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #667 Fixing usage of legacy manager registry (weaverryan)
This PR was squashed before being merged into the 1.0-dev branch.
Discussion
----------
Fixing usage of legacy manager registry
The user's app might use either the new or old class. This is already handled correctly on DoctrineHelper.
Fixes#665
Commits
-------
1e0482b Fixing bad EntityClassGenerator
7390fd3 fixing usage of legacy manager registry
if (!$registryinstanceof ManagerRegistry && !$registryinstanceof LegacyManagerRegistry) {
165
+
thrownew \InvalidArgumentException(sprintf('Argument 2 to %s::validateDoctrineFieldName must be an instance of %s, %s passed.', __CLASS__, ManagerRegistry::class, \is_object($registry) ? \get_class($registry) : \gettype($registry)));
166
+
}
167
+
160
168
// check reserved words
161
169
if ($registry->getConnection()->getDatabasePlatform()->getReservedKeywordsList()->isKeyword($name)) {
162
170
thrownew \InvalidArgumentException(sprintf('Name "%s" is a reserved word.', $name));
0 commit comments