#1568: Doctrine::loadData() can't reload data
-----------------------------------+----------------------------------------
 Reporter:  avorobiev              |       Owner:  jwage  
     Type:  defect                 |      Status:  new    
 Priority:  major                  |   Milestone:  Unknown
Component:  Data Fixtures          |     Version:  1.0.3  
 Keywords:                         |    Has_test:  0      
 Mystatus:  Pending Core Response  |   Has_patch:  1      
-----------------------------------+----------------------------------------
 Function Doctrine::loadData() can only append data to the database, and
 can’t reload data, because function Doctrine_Data ->purge() need model
 names for delete data.[[BR]]
 Without model names function purge() don’t delete any data from
 database.[[BR]]
 Place, where we know model names for loading data, is
 Doctrine_Data_Import->doImport().[[BR]]
 That is why we must pass $append argument from Doctrine::loadData() to
 Doctrine_Data_Import->doImport().[[BR]]
 Because loading data may be related and has foreign key constraint, the
 list of the models must be reversed before data will be deleted.[[BR]]

 Problem was detected in symfony 1.1 framework.

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