StrikoMirko
StrikoMirko

Reputation: 415

How can I set the LIMIT 1, 4 in doctrine dql

So is it possible to set the starting point in MySQL LIMIT via the doctrine?

All I know is how to setMaxResults()...

Upvotes: 0

Views: 195

Answers (1)

pwc
pwc

Reputation: 446

You should use Query::setFirstResult($offset). See more here.

Upvotes: 1

Related Questions