public static function findAllByAttributes($attributes, $condition = null, $params = [])
    {
        $class = get_called_class();
        $condition = ModelCondition::getFrom($condition, $class);
        foreach ($attributes as $name => $value) {
            $condition->compareColumn($name, $value);
        }
        return self::findAll($condition, $params);
    }
public static function findAllByAttributes($attributes, $condition = null, $params = [])
    {
        $class = get_called_class();
        $condition = ModelCondition::getFrom($condition, $class);
        foreach ($attributes as $name => $value) {
            $condition->compareColumn($name, $value);
        }
        return self::findAll($condition, $params);
    }
public static function findAllByAttributes ( $ attributes , $ condition = null , $ params = [ ] ) { $ class = get_called_class ( ) ; $ condition = ModelCondition :: getFrom ( $ condition , $ class ) ; foreach ( $ attributes as $ name => $ value ) { $ condition -> compareColumn ( $ name , $ value ) ; } return self :: findAll ( $ condition , $ params ) ; }
Return all models that have the selected attributes.
@param string [string] $attributes
@param null|string|ModelCondition $condition
@param array $params
@return static[]
Return all models that have the selected attributes .