fixed issues with custom relation names

This commit is contained in:
Umed Khudoiberdiev 2016-05-23 19:13:49 +05:00
parent e7305e9c59
commit c3e69b952a
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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 };
});
}