Ticket #1311 (closed defect: fixed)
Column alias bug
| Reported by: | quocbao | Owned by: | romanb |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Query/Hydration | Version: | 0.11.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description
Doctrine allow you to use column alias but very buggy. I found two bugs till now, the first one is #1309 (just reported) and here come the second:
If I create an alias Id for primary key catalog_id. When I call $record->refresh(true) with column alias, Doctrine will yield that can't find column catalog_id.
The problem is here
$query->where(implode(' = ? AND ', $this->getTable()->getIdentifierColumnNames()) . ' = ?');
If we use column alias, this query is not possible.
Change History
Note: See
TracTickets for help on using
tickets.