#1460: Allow changing a query to SELECT
-----------------------------------+----------------------------------------
 Reporter:  decaf                  |       Owner:  romanb
     Type:  enhancement            |      Status:  new   
 Priority:  minor                  |   Milestone:  1.1.0 
Component:  Query/Hydration        |     Version:  1.0   
 Keywords:                         |    Has_test:  0     
 Mystatus:  Pending Core Response  |   Has_patch:  0     
-----------------------------------+----------------------------------------
 A query currently cannot be converted into a SELECT query it seems.

 Executing insert(), update() or delete() on the query will change its type
 to INSERT, UPDATE or DELETE respectively, however executing select() does
 not change the type of the query. No other method seems to exist for doing
 this.

 jwage said:

 I think maybe in 1.1 we should make a change.


 {{{
 public function select($select = null)
 {
     $this->_type = self::SELECT;
     if ($sql) {
         return $this->_addDqlQueryPart('select', $select);
     }
 }

 }}}

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