(arr: T[][], item: T[])
| 1706 | const pks = wrapped.getPrimaryKeys(true)!; |
| 1707 | const snap = coll.getSnapshot(); |
| 1708 | const includes = <T>(arr: T[][], item: T[]) => !!arr.find(i => this.comparePrimaryKeyArrays(i, item)); |
| 1709 | // For union-target polymorphic M:N, prepend the per-row discriminator value so the pivot |
| 1710 | // persister can write it alongside the FK id. Memoized per sync-run because a collection can |
| 1711 | // hold hundreds of items of the same few types, and findDiscriminatorValue walks the prototype |