cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

New chunk() method for Phalcon ORM

Open TimurFlush opened this issue 7 years ago • 4 comments

Hello.

I suggest to add the chunk() method for Phalcon ORM

Please see below image (from Laravel documentation) for to know his behavior: Снимок

TimurFlush avatar Apr 19 '19 15:04 TimurFlush

Cursors already exist: https://docs.phalconphp.com/3.4/en/db-models#model-resultsets

david-duncan avatar Apr 19 '19 15:04 david-duncan

@david-duncan okay, thank you

TimurFlush avatar Apr 19 '19 16:04 TimurFlush

I suggest adding the chunk parameter in the options of theModel::find method. Instead of a separate method.

Robots::find(
    [
        'chunk' => 3
    ]
);

ekmst avatar May 08 '19 03:05 ekmst

Closing this: Please vote for this feature here: https://github.com/phalcon/cphalcon/issues/14608

niden avatar Dec 09 '19 22:12 niden