mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-644: [ORACLE] setting query maxResults together with firstResult leads to an error #797
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jun 17, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user cicovec:
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.
Result:
(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 !!!
@doctrinebot commented on GitHub (Jun 28, 2010):
Comment created by @beberlei:
fixed formating
@doctrinebot commented on GitHub (Jul 28, 2010):
Comment created by @beberlei:
Fixed
@doctrinebot commented on GitHub (Jul 28, 2010):
Issue was closed with resolution "Fixed"