This commit is contained in:
Umed Khudoiberdiev 2017-07-14 13:09:34 +05:00
parent cc18a0c872
commit b74bdca48d
2 changed files with 4 additions and 4 deletions

View File

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

View File

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