fixed readme

This commit is contained in:
Umed Khudoiberdiev 2016-03-31 18:36:26 +08:00
parent a6741e818b
commit ae94b9bfc7

View File

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