#1395: Calculated columns (created in preHydrate) are lost
------------------------------+---------------------------------------------
  Reporter:  killroyboy       |       Owner:  guilhermeblanco      
      Type:  defect           |      Status:  reopened             
  Priority:  blocker          |   Milestone:  New                  
 Component:  Query/Hydration  |     Version:  1.0                  
Resolution:                   |    Keywords:                       
  Has_test:  0                |    Mystatus:  Pending Core Response
 Has_patch:  0                |  
------------------------------+---------------------------------------------
Comment (by killroyboy):

 I think I've figured out why cleanData caused the problem, but don't know
 how to fix it.  Apparently, $this->_data isn't supposed to contain my
 calculated fields.  They should be in $this->_values.

 I do have _some_ "calculated" fields that are working.  It appears that
 the ones that are not working are the ones that are manipulated/added in
 external functions where I pass the $event->data array to a function that
 is within a non-doctrine class and then return the data array.  I've tried
 passing by reference as well as value (and returning the array into
 $event->data).  Neither one seems to result in the calculated fields
 ending up in the $_values array inside the object.

 Any ideas?

 I can't figure out the failing test case.  Everything seems to be working
 as expected when I build a test case.  So there is something I am doing in
 my code that is making it not work.

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