Ticket #1257 (closed defect: fixed)
Mssql: Unknown table alias [r] when using leftJoin
| Reported by: | pr0f3t | Owned by: | romanb |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Query/Hydration | Version: | 1.0.0 |
| Severity: | Keywords: | Mssql | |
| Cc: | Has Test: | yes | |
| Status: | Pending Core Response | Has Patch: | no |
Description
The query:
Doctrine_Query::create()->select('u.fname, u.id')->from("User u")->leftJoin('u.Role r')->addSelect('r.longname, r.description')->execute()
will trigger the error:
Doctrine_Query_Exception: Unknown table alias [r] in ...DoctrineDoctrineQueryAbstract.php on line 907
It seems the alias is stored as r (No square brackets) but the look-up uses [r], which fails.
Change History
Note: See
TracTickets for help on using
tickets.