diff options
Diffstat (limited to 'lib/sqlalchemy/orm/util.py')
| -rw-r--r-- | lib/sqlalchemy/orm/util.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 58ad3ab5f..b6983a036 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -1212,13 +1212,6 @@ class LoaderCriteriaOption(CriteriaOption): # if options to limit the criteria to immediate query only, # use compile_state.attributes instead - if compile_state.compile_options._with_polymorphic_adapt_map: - util.warn( - "The with_loader_criteria() function may not work " - "correctly with the legacy Query.with_polymorphic() feature. " - "Please migrate code to use the with_polymorphic() standalone " - "function before using with_loader_criteria()." - ) if not compile_state.compile_options._for_refresh_state: self.get_global_criteria(compile_state.global_attributes) |
