fedecarg / apify-library

Apify is a small open source library that delivers new levels of developer productivity by simplifying the creation of RESTful architectures. It helps development teams deliver quality web services and applications in reduced amounts of time. If you are familiar with the Zend Framework, then you already know how to use Apify.
http://www.apifydoc.com
Other
266 stars 49 forks source link

How to exclude results from a FindAll or FindBy #20

Closed ghost closed 2 years ago

ghost commented 11 years ago

Hi, I'd like to limit the results of a query, like how I would use a WHERE ... != .. statement in MySQL.

Ideally I want something like

$this->getModel('Products')->findBy(array("product_id"=>$product_id))->exclude(array("product_status"=>"inactive"));

What's the best way to do this?