docs: changed getManager to getRepository (#5099)

`getRepository` is imported instead of `getManager`.
This commit is contained in:
Pedram marandi 2019-11-22 10:50:09 +11:00 committed by Umed Khudoiberdiev
parent c87e4e7ad9
commit b141a91f66

View File

@ -21,7 +21,7 @@ await getConnection()
This code is equivalent to doing this:
```typescript
import {getManager} from "typeorm";
import {getRepository} from "typeorm";
const postRepository = getRepository(Post);
const post = await postRepository.findOne(1, { relations: ["categories"] });