#1492: Non-selected fields appear in query results
------------------------------+---------------------------------------------
  Reporter:  colnector        |       Owner:  romanb               
      Type:  defect           |      Status:  new                  
  Priority:  major            |   Milestone:                       
 Component:  Query/Hydration  |     Version:  1.0                  
Resolution:                   |    Keywords:                       
  Has_test:  0                |    Mystatus:  Pending Core Response
 Has_patch:  0                |  
------------------------------+---------------------------------------------
Comment (by romanb):

 I think HYDRATE_SCALAR will be the better option since that basically
 gives you an associative array right away, without doing graph
 construction. I think with HYDRATE_SCALAR and HYDRATE_SINGLE_SCALAR
 HYDRATE_NONE will only be useful for some debugging purposes. It was
 originally intended to make it easier to fetch single scalar values (like
 select count(foo.val) from...) but thats what HYDRATE_SINGLE_SCALAR will
 be there for. This will be as efficient as a single
 PDOStatement::fetchColumn() (of course with a single column name <-> field
 name lookup and type conversions if necessary).

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1492#comment:16>
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