src/SqlGenerator.php
public function getUpdateSQL(Update $update)
        {
            if (!$this->query->getTable() instanceof Table) {
                throw new Exception('Trying to generate sql when no table is being used.');
            }
            $sql = $this->generateUpdateSQL($update);
            $sql .= $this->generateWhereSQL(true);

            return $sql;
        }
public function getUpdateSQL(Update $update)
        {
            if (!$this->query->getTable() instanceof Table) {
                throw new Exception('Trying to generate sql when no table is being used.');
            }
            $sql = $this->generateUpdateSQL($update);
            $sql .= $this->generateWhereSQL(true);

            return $sql;
        }
public function getUpdateSQL ( Update $ update ) { if ( ! $ this -> query -> getTable ( ) instanceof Table ) { throw new Exception ( 'Trying to generate sql when no table is being used.' ) ; } $ sql = $ this -> generateUpdateSQL ( $ update ) ; $ sql .= $ this -> generateWhereSQL ( true ) ; return $ sql ; }
Generate an "update" query

@param Update $update
@return string
@throws Exception
Generate an update query