Set and get method for conditions.
If no conditions are set in query, it will ask the bound entity for condition array.

Parameters

  • mixed $conditions String or array to append to existing conditions.

Returns

array Returns an array of all conditions applied to this query.

Source

						public function conditions($conditions = null) {
		if ($conditions) {
			$conditions = (array) $conditions;
			$this->_config['conditions'] = (array) $this->_config['conditions'];
			$this->_config['conditions'] = array_merge($this->_config['conditions'], $conditions);
			return $this;
		}
		return $this->_config['conditions'] ?: $this->_entityConditions();
	}