@deprecated

@param array $conditions
@return array
331828
protected function _searchConditions($conditions = []) {
		$model = $this->MimeTypes->alias;

		$sessionSearch = $this->request->getSession()->read($model . '.search');
		$fieldStr = '';
		$searchStr = '';

		if (!empty($this->request->query['clear']) && $this->request->query['clear'] === 'search') {
			$this->request->getSession()->delete($model . '.search');
		} else {

		if ($this->request->getData() && !empty($this->request->data['Form']['field'])) {
			$fieldStr = $this->request->data['Form']['field'];
		} elseif (!empty($this->request->query['field'])) {
			$fieldStr = $this->request->query['field'];
		} elseif (!empty($sessionSearch['field'])) {
			$fieldStr = $sessionSearch['field'];
		}

		if ($this->request->getData() && !empty($this->request->data['Form']['search'])) {
			$searchStr = $this->request->data['Form']['search'];
		} elseif (!empty($this->request->query['search'])) {
			$searchStr = $this->request->query['search'];
		} elseif (!empty($sessionSearch['search'])) {
			$searchStr = $sessionSearch['search'];
		}

		}
		$this->set(compact('fields', 'searchStr'));

		if (!empty($searchStr)) {
			$this->request->getSession()->write($model . '.search', ['search' => $searchStr, 'field' => $fieldStr]);

			$conditions['or'][$model . '.name LIKE'] = '%' . $searchStr . '%';
			$conditions['or'][$model . '.ext LIKE'] = '%' . $searchStr . '%';
			$conditions['or'][$model . '.type LIKE'] = '%' . $searchStr . '%';
			$conditions['or'][$model . '.alt_type LIKE'] = '%' . $searchStr . '%';
		}
		return $conditions;
	 }
1356051
public function where($conditions, array $values){
        if($this->where != ''){$this->where.='AND ';}
        $this->where.= $conditions . ' ';
        $this->where_values = array_merge($this->where_values, $values);
    }
306879
public function remove($conditions)
    {
        $query = $this->db->getQuery(true);

        $query->delete($query->quoteName($this->table))
            ->where('id = :id')
            ->bind('id', $conditions);

        $this->db->setQuery($query)->execute();

        return true;
    }
1273952
public function addConditions( $conditions )
	{
		if( !is_array( $conditions ) )
			throw new InvalidArgumentException( 'An Array should be given.' );
		foreach( $conditions as $condition )
			$this->addCondition( $condition );
	}
1161762
private function doConditionsApply(array $conditions) : bool
    {
        $conditionRunner = new Condition($this->io, $this->repository);
        foreach ($conditions as $config) {
            if (!$conditionRunner->doesConditionApply($config)) {
                return false;
            }
        }
        return true;
    }
1207511
public function compileConditions()
    {
        $ret = [];
        if (!empty($this->conditions)) {
            $ret['where'] = implode(' ', $this->conditions);
        }
        return $ret;
    }
1000627
public function where(...$conditions) : self
    {
        $this->conditionalQueryBuilder->where(
            ...$this->createConditionExpressions($conditions)
        );

        return $this;
    }
456461
public function add(array $conditions)
    {
        $this->conditions = array_merge($this->conditions, $conditions);

        return $this->conditions;
    }
653127
private function setupConditions(array $conditions) : void
    {
        foreach ($conditions as $condition) {
            $this->conditions[] = new Condition($condition['exec'], $condition['args'] ?? []);
        }
    }
386770
public function getCart(array $conditions = array())
    {
        $conditions += array(
            'user_id' => $this->cart_uid,
            'store_id' => $this->store_id
        );

        $cart = $this->cart->getContent($conditions);
        $this->prepareCart($cart);
        return $cart;
    }
754033
public static function extractWhereValues($conditions) 
    {
        $values = array();
        if (!$conditions) {
            return $values;
        }

        if (is_array($conditions)) {
            if (array_values($conditions) !== $conditions) {
                $values = self::_extractWhereAssociativeValues($conditions);
            } else {
                $values = self::_extractWhereRegularValues($conditions);
            }
        }
        return $values;
    }
710348
function getPrevRecordID($conditions = [])
    {
        $conditions['order'] = 'id@A';
        $conditions['limit'] = 1;
        $conditions[]        = 'id lt '.$this->getRecordID();
        $prev                = $this->getColumnsFromFlexibee(['id'], $conditions);
        return (is_array($prev) && array_key_exists(0, $prev) && array_key_exists('id',
                $prev[0])) ? intval($prev[0]['id']) : null;
    }
103243
public function find($conditions)
    {
        $conditions[$this->_property] = $this->_root;

        $found = $this->getRepository()->find($conditions);

        return $found;
    }
1011526
public function where($conditions, $values=null) {
		if(!$conditions)
			return $this;
		if($values !== null)
			$this->where[] = [$conditions => $values];
		else
			$this->where[] = $conditions;

		return $this;
	}
583341
public function extractParameters(array $conditions)
    {
        preg_match_all('/{(\w+)}/', $this->regrex, $matches, PREG_PATTERN_ORDER);

        array_map(function ($parameter) use ($conditions) {
            if (isset($conditions[$parameter])) {
                return $this->parameters[$parameter] = $conditions[$parameter];
            }

            return $this->parameters[$parameter] = self::DEFAULT_REGREX;
        }, $matches[1]);

        return $this;
    }
1281577
public function getItem(array $conditions = array())
    {
        $list = $this->getItems($conditions);

        if (empty($list)) {
            return $list;
        }

        return reset($list);
    }
856800
public function getByConditionSets(array $conditionSets)
    {
        $query = $this->createQuery();
        $query->whereMany($conditionSets);
        $result = $this->database->query($query);

        $entities = [];
        if ($result) {
            $result = $result->fetchAll(\PDO::FETCH_ASSOC);
            $entities = $this->handleResult($result);
        }
        if ($this->returnOne && is_array($entities)) {
            return current($entities);
        }
        return $entities;
    }