Vivek Goel
Vivek Goel

Reputation: 24140

Limiting result using ORM kohana

I have written code

ORM::factory('cds')->find_all(1, 2);

It is returning all row . But according to documentation it should return 2 row. what's wrong in the code ? http://docs.kohanaphp.com/libraries/orm

Upvotes: 4

Views: 3536

Answers (1)

zerkms
zerkms

Reputation: 254906

For Kohana v3 the valid way to perform limit is:

ORM::factory('cds')->limit(2)->find_all();

Upvotes: 7

Related Questions