src/SQRT/QueryBuilder/Conditions.php
public function mixed($mixed)
  {
    if ($mixed instanceof Condition) {
      $this->add($mixed);
    } elseif (is_array($mixed)) {
      foreach ($mixed as $key => $val) {
        if (is_array($val)) {
          $this->in($key, $val);
        } elseif (is_numeric($key)) {
          $this->expr($val);
        } else {
          $this->equal($key, $val);
        }
      }
    } elseif (is_numeric($mixed)) {
      $this->equal('id', $mixed);
    } else {
      $this->expr($mixed);
    }

    return $this;
  }
public function mixed($mixed)
  {
    if ($mixed instanceof Condition) {
      $this->add($mixed);
    } elseif (is_array($mixed)) {
      foreach ($mixed as $key => $val) {
        if (is_array($val)) {
          $this->in($key, $val);
        } elseif (is_numeric($key)) {
          $this->expr($val);
        } else {
          $this->equal($key, $val);
        }
      }
    } elseif (is_numeric($mixed)) {
      $this->equal('id', $mixed);
    } else {
      $this->expr($mixed);
    }

    return $this;
  }
Произвольный формат