public function insert($insert = null)
    {
        $this->type = self::INSERT;

        if (!$insert) {
            return $this;
        }

        return $this->add('from', array(
            'table' => $insert
        ));
    }
public function insert($insert = null)
    {
        $this->type = self::INSERT;

        if (!$insert) {
            return $this;
        }

        return $this->add('from', array(
            'table' => $insert
        ));
    }
public function insert ( $ insert = null ) { $ this -> type = self :: INSERT ; if ( ! $ insert ) { return $ this ; } return $ this -> add ( 'from' , array ( 'table' => $ insert ) ) ; }
Turns the query being built into an insert query that inserts into
a certain table

<code>
$qb = $conn->createQueryBuilder()
->insert('users')
->values(
array(
'name' => '?',
'password' => '?'
)
);
</code>

@param string $insert The table into which the rows should be inserted.

@return QueryBuilder This QueryBuilder instance.
Turns the query being built into an insert query that inserts into a certain table