WeDevs\ORM\Eloquent\Database::affectingStatement PHP Method

affectingStatement() public method

Run an SQL statement and get the number of rows affected.
public affectingStatement ( string $query, array $bindings = [] ) : integer
$query string
$bindings array
return integer
    public function affectingStatement($query, $bindings = array())
    {
        $new_query = $this->bind_params($query, $bindings, true);
        return intval($this->db->query($new_query));
    }