Ultimate Result Using ORM kohana

I wrote the code

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

It returns the whole string. But according to the documentation, it should return 2 rows. what is wrong in the code? http://docs.kohanaphp.com/libraries/orm

+4
source share
1 answer

For Kohana v3, a valid way to fulfill the constraint is:

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

Source: https://habr.com/ru/post/1348073/


All Articles