#1400: DQL strips last character off field name
------------------------------+---------------------------------------------
  Reporter:  magnetik         |       Owner:  romanb               
      Type:  defect           |      Status:  closed               
  Priority:  major            |   Milestone:  1.0.1                
 Component:  Query/Hydration  |     Version:  1.0                  
Resolution:  invalid          |    Keywords:  query parse          
  Has_test:  0                |    Mystatus:  Pending Core Response
 Has_patch:  0                |  
------------------------------+---------------------------------------------
Changes (by jwage):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 You have an error in your DQL. Missing the last closing parenthesis. It
 should be:

 {{{
 $designs = Doctrine_Query::create()
             ->from('ContractDesign d')
             ->where('d.id in (SELECT d2.id FROM ContractDesign d2 GROUP BY
 d2.level HAVING MAX(d2.version))')
             ->orderBy('d.level asc')
             ;
 }}}

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1400#comment:3>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to