public static function deleteAll($condition, $params = array())
    {
        if (!is_a($condition, '\\mpf\\datasources\\sql\\ModelCondition')) {
            $condition = ModelCondition::getFrom($condition, get_called_class());
        }
        /* @var $condition ModelCondition */
        $condition->setParams($params);
        return static::getDb()->execQuery($condition->forDelete(), $condition->getParams());
    }
public static function deleteAll($condition, $params = array())
    {
        if (!is_a($condition, '\\mpf\\datasources\\sql\\ModelCondition')) {
            $condition = ModelCondition::getFrom($condition, get_called_class());
        }
        /* @var $condition ModelCondition */
        $condition->setParams($params);
        return static::getDb()->execQuery($condition->forDelete(), $condition->getParams());
    }
public static function deleteAll ( $ condition , $ params = array ( ) ) { if ( ! is_a ( $ condition , '\\mpf\\datasources\\sql\\ModelCondition' ) ) { $ condition = ModelCondition :: getFrom ( $ condition , get_called_class ( ) ) ; } /* @var $condition ModelCondition */ $ condition -> setParams ( $ params ) ; return static :: getDb ( ) -> execQuery ( $ condition -> forDelete ( ) , $ condition -> getParams ( ) ) ; }
Delete all models that match condition.
@param string|ModelCondition $condition
@param array $params
@return int
Delete all models that match condition .