Ticket #1575 (closed defect: fixed)
query reset doesnt work
| Reported by: | tester | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.0.4 |
| Component: | Attributes | Version: | 1.0.3 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description (last modified by jwage) (diff)
hi
there is a problem when i try to reset a query for in the followig code
$query = new Doctrine_Query();
$cars = $query->select('c.*, RANDOM() rand')->from('Car c')->where('c.special_offer = ?', array(true))->orderBy('rand')->limit(5)->execute();
$query->reset();
$brands = $query->select('b.*')->from('Brand b')->where('b.disabled = ? or b.disabled IS NULL', array(false))->execute();
i get the following exception: Unknown aggregate alias: rand
also the limit needs to be reseted
thanx
Change History
Note: See
TracTickets for help on using
tickets.