Ticket #1311 (closed defect: fixed)

Opened 11 months ago

Last modified 10 months ago

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

Changed 11 months ago by jwage

  • milestone changed from 1.1.0 to 1.0.0-RC1

Changed 11 months ago by romanb

  • status changed from new to closed
  • resolution set to fixed

(In [4769]) Fixed #1311.

Changed 10 months ago by anonymous

  • milestone New deleted

Milestone New deleted

Note: See TracTickets for help on using tickets.