Ticket #1049 (closed defect: fixed)
Join issue with functions
| Reported by: | guilhermeblanco | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Attributes | Version: | 0.11.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | ||
| Status: | Has Patch: |
Description
// Couldn't get short alias for LOWER(lme $children = Doctrine_Query::create()
->select( 'lnt.id, lnt.name, COUNT(lme.id) AS numElements' ) ->from( 'LogicalNavigationTree? lnt' ) ->leftJoin( 'lnt.LogicalManagedElement? lme WITH LOWER(lme.name) LIKE LOWER(?)' ) ->where( 'lnt.lft > ? AND lnt.rgt < ?' ) ->execute( array(
'%' . ( ( $search == ) ? : $search . '%' ), $recordlft?, $recordrgt?
), Doctrine::HYDRATE_ARRAY );
Change History
Note: See
TracTickets for help on using
tickets.