(
self,
compile_state,
query_entity,
path,
loadopt,
adapter,
column_collection,
memoized_populators,
check_for_adapt=False,
**kwargs,
)
| 206 | self.is_composite = hasattr(self.parent_property, "composite_class") |
| 207 | |
| 208 | def setup_query( |
| 209 | self, |
| 210 | compile_state, |
| 211 | query_entity, |
| 212 | path, |
| 213 | loadopt, |
| 214 | adapter, |
| 215 | column_collection, |
| 216 | memoized_populators, |
| 217 | check_for_adapt=False, |
| 218 | **kwargs, |
| 219 | ): |
| 220 | for c in self.columns: |
| 221 | if adapter: |
| 222 | if check_for_adapt: |
| 223 | c = adapter.adapt_check_present(c) |
| 224 | if c is None: |
| 225 | return |
| 226 | else: |
| 227 | c = adapter.columns[c] |
| 228 | |
| 229 | compile_state._append_dedupe_col_collection(c, column_collection) |
| 230 | |
| 231 | fetch = self.columns[0] |
| 232 | if adapter: |
| 233 | fetch = adapter.columns[fetch] |
| 234 | if fetch is None: |
| 235 | # None happens here only for dml bulk_persistence cases |
| 236 | # when context.DMLReturningColFilter is used |
| 237 | return |
| 238 | |
| 239 | memoized_populators[self.parent_property] = fetch |
| 240 | |
| 241 | def init_class_attribute(self, mapper): |
| 242 | self.is_class_level = True |
no test coverage detected