Doctrine\DBAL\Statement::rowCount PHP Method

rowCount() public method

Returns the number of rows affected by the last execution of this statement.
public rowCount ( ) : integer
return integer The number of affected rows.
    public function rowCount()
    {
        return $this->stmt->rowCount();
    }

Usage Example

Example #1
0
 protected function execute()
 {
     if ($this->currentStatement === null) {
         $this->currentStatement = $this->db->query($this->buildQuery());
         $this->rowCount = $this->currentStatement->rowCount();
     }
     return $this->currentStatement;
 }
All Usage Examples Of Doctrine\DBAL\Statement::rowCount