#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 dont see any good reason for making subtle differentiations in array
 hydration. Not only is this a non-trivial decision to make in many cases
 (when do we need the PKs, when not) but it would also be very confusing if
 the same hydration mode behaves differently, sometimes adding PKs,
 sometimes not. The current Array hydration is a graph hydration and is
 based on entity identity, thats it.

 As for HYDRATE_NONE, yes it returns only numeric keys, this has been asked
 many times before and the reason here is again quite simple. Just watch
 the SQL statements that get generated and you will notice that all columns
 in the select list are aliased in a special way that makes hydration
 possible/easy. Hence if HYDRATE_NONE would return a normal associative
 array you would not really have a clue what the resulting column names in
 the result set are. Not very helpful.

 I will mark this ticket closed together with the new ticket on
 HYDRATE_NONE once i fixed the issue where the PKs are added with
 HYDRATE_NONE.

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