src/Dao/AbstractDao.php
protected function fetchAll( $sql, $params = null ) {
		$this->logger->debug( $sql, $params ?: [] );
		$stmt = $this->dbh->prepare( $sql );
		$this->bind( $stmt, $params );
		$stmt->execute();
		return $stmt->fetchAll();
	}
protected function fetchAll( $sql, $params = null ) {
		$this->logger->debug( $sql, $params ?: [] );
		$stmt = $this->dbh->prepare( $sql );
		$this->bind( $stmt, $params );
		$stmt->execute();
		return $stmt->fetchAll();
	}
protected function fetchAll ( $ sql , $ params = null ) { $ this -> logger -> debug ( $ sql , $ params ? : [ ] ) ; $ stmt = $ this -> dbh -> prepare ( $ sql ) ; $ this -> bind ( $ stmt , $ params ) ; $ stmt -> execute ( ) ; return $ stmt -> fetchAll ( ) ; }
Prepare and execute an SQL statement and return all results.

@param string $sql SQL
@param array $params Prepared statement parameters
@return array Result rows
Prepare and execute an SQL statement and return all results .