Search code examples
phpfetchidiorm

Find all record from database using Idiorm


I have lots of records in my database table.If I want to get the all records with Idiorm then I am not successful to find this. Actually i have 20000 records and I want all with query.It is not possible with Idiorm .

How could it be possible.

Here is My Code :

$app = Slim::getInstance();

$recipe= ORM::for_table('recipes')->find_many();

Solution

  • Found the solution for this issue.You need to add these line before you query

    ORM::configure('return_result_sets', true);
    

    Thanks @Dagon for you help to find the correct solutions.