#1679: onDql* event listeners can not modify the underlying query using prepared
parameter placeholders (?)
----------------------------------------------------------+-----------------
 Reporter:  zachatwork                                    |       Owner:  romanb
     Type:  defect                                        |      Status:  new   
 Priority:  minor                                         |   Milestone:        
Component:  Query/Hydration                               |     Version:  1.0.3 
 Keywords:  query, params, preDqlSelect, event, listener  |    Has_test:  0     
 Mystatus:  Pending Core Response                         |   Has_patch:  0     
----------------------------------------------------------+-----------------
 Doctrine_Query_Abstract calls $params = $this->getParams() before calling
 $this->_preQuery($params). However, the event listeners invoked by
 _preQuery may change the result of getParams() by adding additional query
 clauses that have additional prepared statement parameters.

 Consequently, $params = $this->getParams() will need to be re-called after
 $this->_preQuery($params) in order to pull any updates to the params back
 into scope.

 Test case and patch forthcoming.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1679>
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