Gas ORM 2.x |
Hello everyone!
Does anyone know how i can do/use multiple find_by() ? In this case I want to find a users with specified role and where "account_status" != "blocked". The code currently looks like the following snippet (Which is working perfectly) PHP Code: $data['users'] = Model\Users::find_by_role($role); But i only want users that aren't banned or blocked or whatever. I can't exactly do the following. PHP Code: $data['users'] = Model\Users::find_by_role($role)->find_by_account_status($status); /* wrong */ How can i find users with multiple WHERE clauses? Any help would be greatly appreciated! |
Messages In This Thread |
Gas ORM 2.x - by jtskjelfjord - 12-04-2015, 05:34 AM
RE: Gas ORM 2.x - by neils - 01-04-2016, 05:30 AM
|