mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixes #652
This commit is contained in:
parent
cc18a0c872
commit
b74bdca48d
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user