mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
returned setMaxResults / setFirstResult back to make sure its not-so-breakable for users
This commit is contained in:
parent
2faec895ba
commit
3a512c4181
@ -743,13 +743,33 @@ export class QueryBuilder<Entity> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets number of entities to skip
|
||||
* Sets number of entities to skip.
|
||||
*/
|
||||
skip(skip?: number): this {
|
||||
this.expressionMap.skip = skip;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets maximal number of entities to take.
|
||||
*
|
||||
* @deprecated use take method instead
|
||||
*/
|
||||
setMaxResults(take?: number): this {
|
||||
this.expressionMap.take = take;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets number of entities to skip.
|
||||
*
|
||||
* @deprecated use skip method instead
|
||||
*/
|
||||
setFirstResult(skip?: number): this {
|
||||
this.expressionMap.skip = skip;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets locking mode.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user