mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: correct "it's" -> "its"
"It's" is a contraction for "it is". "its" is the possessive form of "it".
This commit is contained in:
parent
87b9fad737
commit
9d862c8a53
@ -55,7 +55,7 @@ export class UserController {
|
||||
Transactions have their own scope of execution: they have their own query runner, entity manager and repository instances.
|
||||
That's why using global (data source's) entity manager and repositories won't work in transactions.
|
||||
In order to execute queries properly in scope of transaction you **must** use provided entity manager
|
||||
and it's `getRepository` method. In order to use custom repositories within transaction,
|
||||
and its `getRepository` method. In order to use custom repositories within transaction,
|
||||
you must use `withRepository` method of the provided entity manager instance:
|
||||
|
||||
```typescript
|
||||
|
||||
@ -16,7 +16,7 @@ You can create a view entity by defining a new class and mark it with `@ViewEnti
|
||||
- `database` - database name in selected DB server.
|
||||
- `schema` - schema name.
|
||||
- `expression` - view definition. **Required parameter**.
|
||||
- `dependsOn` - List of other views on which the current views depends. If your view uses another view in it's definition, you can add it here so that migrations are generated in the correct order.
|
||||
- `dependsOn` - List of other views on which the current views depends. If your view uses another view in its definition, you can add it here so that migrations are generated in the correct order.
|
||||
|
||||
`expression` can be string with properly escaped columns and tables, depend on database used (postgres in example):
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user