(hint: PopulateOptions<T>, meta: EntityMetadata<T>)
| 302 | } |
| 303 | |
| 304 | protected hasToManyJoins<T extends object>(hint: PopulateOptions<T>, meta: EntityMetadata<T>): boolean { |
| 305 | const [propName] = hint.field.split(':', 2) as [EntityKey<T>]; |
| 306 | const prop = meta.properties[propName]; |
| 307 | |
| 308 | if (prop && [ReferenceKind.ONE_TO_MANY, ReferenceKind.MANY_TO_MANY].includes(prop.kind)) { |
| 309 | return true; |
| 310 | } |
| 311 | |
| 312 | if (hint.children && prop.targetMeta) { |
| 313 | return hint.children.some(hint => this.hasToManyJoins(hint as any, prop.targetMeta as any)); |
| 314 | } |
| 315 | |
| 316 | return false; |
| 317 | } |
| 318 | |
| 319 | override async findVirtual<T extends object>( |
| 320 | entityName: EntityName<T>, |
nothing calls this directly
no test coverage detected