Ticket #1492 (closed defect: fixed)
Non-selected fields appear in query results
| Reported by: | colnector | Owned by: | romanb |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Query/Hydration | Version: | 1.0.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description
Fields that were NOT specifically selected appear in the results set. This is inflating the results set.
For example:
$q = Doctrine_Query::create() ## New query
->select('inv.item_id, inv.list_type')
->from('Inventory inv')
->addWhere('inv.category_id = ?', array(1))
;
inv.category_id appears in the results set.
Change History
Note: See
TracTickets for help on using
tickets.