model - Fuelphp ORM where in -


i have database logic need executed, want rows selected user , deleted it.

my database logic getting rows , delete individually.

i'm using fuelphp 1.6 code is(as per stated on fuelphp forum topic in orm):

model_article::find()->where('id', 'in', array(1,3))->get(); 

the problem got error:

call member function where() on non-object 

note: model_article extends orm\model

can me? thank in advance.

right... change "select" this:

model_article::find('all', array('where' => array('id', 'in', array(1,3)))) 

or change select to

model_article::query()->where('id', 'in', array(1,3))->get(); 

after can "delete" in every record.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -