mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixed issues with custom relation names
This commit is contained in:
parent
e7305e9c59
commit
c3e69b952a
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "typeorm",
|
||||
"private": true,
|
||||
"version": "0.0.2-alpha.26",
|
||||
"version": "0.0.2-alpha.27",
|
||||
"description": "Data-mapper ORM for Typescript",
|
||||
"license": "Apache-2.0",
|
||||
"readmeFilename": "README.md",
|
||||
|
||||
@ -71,7 +71,7 @@ export class PlainObjectToDatabaseEntityTransformer<Entity> {
|
||||
value = Object.assign({}, ...value);
|
||||
|
||||
const child = value ? this.buildLoadMap(value, relation.inverseEntityMetadata) : [];
|
||||
return <LoadMap> { name: relation.name, child: child };
|
||||
return <LoadMap> { name: relation.propertyName, child: child };
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user