mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixed readme
This commit is contained in:
parent
a6741e818b
commit
ae94b9bfc7
@ -672,7 +672,7 @@ let photoRepository = connection.getRepository(Photo);
|
||||
photoRepository
|
||||
.createQueryBuilder("photo") // first argument is an alias. Alias is what you are selecting - photos. You must specify it.
|
||||
.innerJoinAndSelect("photo.metadata")
|
||||
.leftJoinAndSelect("photo.3")
|
||||
.leftJoinAndSelect("photo.albums")
|
||||
.where("photo.isPublished=true")
|
||||
.andWhere("photo.name=:photoName OR photo.name=:bearName")
|
||||
.orderBy("photo.id", "DESC")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user