4

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

Vivek Goel
  • 22,942
  • 29
  • 114
  • 186

1 Answers1

7

For Kohana v3 the valid way to perform limit is:

ORM::factory('cds')->limit(2)->find_all();
zerkms
  • 249,484
  • 69
  • 436
  • 539