Cake\Database\Query::values PHP Метод

values() публичный Метод

Multi inserts can be performed by calling values() more than one time, or by providing an array of value sets. Additionally $data can be a Query instance to insert data from another SELECT statement.
public values ( array | Query $data )
$data array | Query The data to insert.
    public function values($data)
    {
        if ($this->_type !== 'insert') {
            throw new Exception('You cannot add values before defining columns to use.');
        }
        if (empty($this->_parts['insert'])) {
            throw new Exception('You cannot add values before defining columns to use.');
        }
        $this->_dirty();
        if ($data instanceof ValuesExpression) {
            $this->_parts['values'] = $data;
            return $this;
        }
        $this->_parts['values']->add($data);
        return $this;
    }