or like condition.

@param   string  $key
@param   string  $like
@return  Samurai\Onikiri\Criteria\WhereCondition
166876
public function orLike($key, $like)
    {
        $value = sprintf('%s LIKE ?', $key);
        return $this->orAdd($value, [$like]);
    }
239234
public function settingsKey($key)
    {
        if (is_array($this->settings) == false || isset($this->settings[$key]) == false) {
            return false;
        }

        return $this->settings[$key];
    }
1360336
public function orWhereBetween(string $key, int $min, int $max): QueryBuilder
    {
        $values = ['min' => $min, 'max' => $max];
        $this->addWhere($key, 'BETWEEN', $values, 'OR');
        return$this;
    }
845790
public function any($key, $default = NULL)
    {
        $item = $this->param($key, NULL);
        if ( $item ) {
            return $item;
        }
        $item = $this->post($key, NULL);
        if ( $item ) {
            return $item;
        }
        $item = $this->query($key, NULL);
        if ( $item ) {
            return $item;
        }

        return $default;
    }
141368
public function like($column, $pattern)
    {
        $this->conditions = [$this->grammar->buildId($column) . ' LIKE ' . $pattern];

        return $this;
    }
1065337
public function orWhereIn(string $key, array $values): QueryBuilder
    {
        $this->addWhere($key, 'IN', $values, 'OR');
        return $this;
    }
799570
public function orWhereLike($column, $value, $filter = false)
    {
        return $this->orWhere($column, 'LIKE', $value, $filter);
    }
890449
public function guid($guid, $like = false)
    {
        /* @var $this ActiveQuery */
        $model = $this->noInitModel;
        return $this->likeCondition((string)$guid, $model->guidAttribute, $like);
    }
1267218
public function getWhere($key)
    {
        foreach( $this->where as $w ) {
            if( $w[0] === $key ) {
                return $w[1];
            }
        }
        return null;
    }
458828
final public function orLike($field, $match = '', $side = 'both', $not = '')
    {
        return $this->like($field, $match, 'OR', $side, $not);
    }
1347798
public function scopeKeywords($query, $keyword)
    {
        return $query->where(function ($query) use ($keyword) {
            $query->where('name', 'LIKE', "%$keyword%")
            ->orWhere('description', 'LIKE', "%$keyword%");
        });
    }
593825
public function whereLike($expr, $like)
    {
        if ($like === '') {
            return $this;
        }

        if (is_array($expr)) {
            $conditions = [];
            /** @noinspection ForeachSourceInspection */
            foreach ($expr as $field) {
                $key = strtr($field, '.', '_');
                if (strpos($field, '.') !== false) {
                    $conditions[] = '[' . str_replace('.', '].[', $field) . ']' . ' LIKE :' . $key;
                } else {
                    $conditions[] = '[' . $field . '] LIKE :' . $key;
                }

                $this->_bind[$key] = $like;
            }

            $this->_conditions[] = implode(' OR ', $conditions);
        } else {
            $key = strtr($expr, '.', '_');

            if (strpos($expr, '[') === false && strpos($expr, '(') === false) {
                if (strpos($expr, '.') !== false) {
                    $expr = '[' . str_replace('.', '].[', $expr) . ']';
                } else {
                    $expr = '[' . $expr . ']';
                }
            }

            $this->_conditions[] = $expr . ' LIKE :' . $key;

            $this->_bind[$key] = $like;
        }

        return $this;
    }
658991
public function OrLike($Field, $Match = '', $Side = 'both', $Op = 'like') {
      if (!is_array($Field))
         $Field = array($Field => $Match);
      
      foreach ($Field as $f => $v) {
         $this->OrOp()->Like($f, $v, $Side, $Op);
      }
      return $this;

//       return $this->OrOp()->Like($Field, $Match, $Side, $Op);
   }
236586
private function prepareCondition($q)
    {
        $condition = [];
        foreach ($this->searchFields as $field) {
            $condition[] = ['like', $field, $q];
        }
        if (count($this->searchFields) > 1) {
            array_unshift($condition, 'or');
        }
        return $condition;
    }
1373088
final public function orWhere($key, $values = NULL, $type = 'OR')
    {
        return $this->where($key, $values, $type);
    }
1216674
public function findOneUnexpiredByKey(string $key)
    {
        $criteria = new Criteria();
        $criteria->where(Criteria::expr()->eq('key', $key))
            ->andWhere(Criteria::expr()->gt('expiry', new \DateTime()));

        $firstMatch = $this->matching($criteria)->first();

        // $firstMatch will be false if there is no match, not null.
        return $firstMatch ?: null;
    }
982719
public function filterByPrimaryKey($key)
    {
        $this->addUsingAlias(UserRoleTableMap::COL_USER_ID, $key[0], Criteria::EQUAL);
        $this->addUsingAlias(UserRoleTableMap::COL_ROLE_ID, $key[1], Criteria::EQUAL);

        return $this;
    }