mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
entity metadata refactoring - phase IV
This commit is contained in:
parent
b80f4bcae1
commit
1ecb949b1e
@ -465,7 +465,7 @@ export class SpecificRepository<Entity extends ObjectLiteral> {
|
||||
results.forEach(result => {
|
||||
ids.push(Object.keys(result).reduce((id, key) => {
|
||||
const junctionColumnName = inverseEntityColumns.find(joinColumn => joinColumn.name === key)!;
|
||||
id[junctionColumnName.referencedColumn.propertyName] = result[key];
|
||||
id[junctionColumnName.referencedColumn!.propertyName] = result[key];
|
||||
return id;
|
||||
}, {} as ObjectLiteral));
|
||||
}); // todo: prepare result?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user