docs: fix undefined repository variable on docs (#6221)

The `repository` variable is not defined in the first Data Mapper pattern example
This commit is contained in:
Giancarlos Isasi 2020-06-07 04:32:15 -05:00 committed by GitHub
parent 007214986e
commit defa9bced0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,8 @@ export class User {
And your domain logic looks like this:
```typescript
const repository = connection.getRepository(User);
const user = new User();
user.firstName = "Timber";
user.lastName = "Saw";