From b74bdca48d297df214e41d228156d44226697594 Mon Sep 17 00:00:00 2001 From: Umed Khudoiberdiev Date: Fri, 14 Jul 2017 13:09:34 +0500 Subject: [PATCH] fixes #652 --- README-zh_CN.md | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README-zh_CN.md b/README-zh_CN.md index 762e0413c..25b389fa4 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -921,13 +921,13 @@ let photo1 = new Photo(); photo1.name = "Me and Bears"; photo1.description = "I am near polar bears"; photo1.filename = "photo-with-bears.jpg"; -photo1.albums.push(album1); +photo1.albums = [album1]; let photo2 = new Photo(); photo2.name = "Me and Bears"; photo2.description = "I am near polar bears"; photo2.filename = "photo-with-bears.jpg"; -photo2.albums.push(album2); +photo2.albums = [album2]; // 获取Photo的repository let photoRepository = connection.getRepository(Photo); diff --git a/README.md b/README.md index e68953af1..0f631ec5d 100644 --- a/README.md +++ b/README.md @@ -1002,13 +1002,13 @@ let photo1 = new Photo(); photo1.name = "Me and Bears"; photo1.description = "I am near polar bears"; photo1.filename = "photo-with-bears.jpg"; -photo1.albums.push(album1); +photo1.albums = [album1]; let photo2 = new Photo(); photo2.name = "Me and Bears"; photo2.description = "I am near polar bears"; photo2.filename = "photo-with-bears.jpg"; -photo2.albums.push(album2); +photo2.albums = [album1]; // Get entity repository let photoRepository = connection.getRepository(Photo);