I'm not very skilled in doctrine yet, but I found something that might be worth reporting.
The code below produces "Class does not exist" error, which is quite misleading and just a side effect of a Notice that shows up in AbstractHydrator.php (lines 190 and 191).
The query becomes:
The problem occurs when iterating over the list of internal column aliases (ID_COMPANY0,DESCRIPTION3,ID_DISPLAY_CASE4,MAX_OPEN_WIN5,NAME6,REFRESH_TIME7,STATUS8,TABLESPACE9 and
DOCTRINE_ROWNUM). The last one "DOCTRINE_ROWNUM" is missing in both $this->_rsm->metaMappings and $this->_rsm->columnOwnerMap and it's not a matter of case sensitivity, it's missing completely.
(line 203) creates a new key (named as empty string) in $rowData and things get screwed up since then in further iterations over $rowData array.
Unfortunately I'm not familiar with the internal code of doctrine at all, and it seems too complex for me to be able to provide a fix (except for an ugly hack).
I've attached the Exception trace (might help).
BTW: Doctrine 2 is the cleanest piece of complex code I've ever seen. You guys rock !!!