protected function fetchAsAssoc(Statement $stmt)
    {
        $stmt->setFetchMode(\PDO::FETCH_ASSOC);

        return $stmt->fetchAll(\PDO::FETCH_ASSOC);
    }
protected function fetchAsAssoc(Statement $stmt)
    {
        $stmt->setFetchMode(\PDO::FETCH_ASSOC);

        return $stmt->fetchAll(\PDO::FETCH_ASSOC);
    }
protected function fetchAsAssoc ( Statement $ stmt ) { $ stmt -> setFetchMode ( \ PDO :: FETCH_ASSOC ) ; return $ stmt -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; }
Fetches result as associative array, mostly for pivot tables

@param Statement $stmt

@return array
Fetches result as associative array mostly for pivot tables