#1533: Doctrine_Data::purge with no arguments does not purge all models from the
database
-----------------------------------+----------------------------------------
 Reporter:  ibolmo                 |       Owner:  jwage
     Type:  defect                 |      Status:  new  
 Priority:  minor                  |   Milestone:       
Component:  Data Fixtures          |     Version:  1.0.2
 Keywords:  filterInvalidModels    |    Has_test:  0    
 Mystatus:  Pending Core Response  |   Has_patch:  1    
-----------------------------------+----------------------------------------
 The real issue is line 260 in Doctrine_Data:
 {{{
 $models = Doctrine::filterInvalidModels($models);
 }}}

 If $models is null, filterInvalidModels will return an empty array.

 Should be:
 {{{
 if ($models) {
   $models = Doctrine::filterInvalidModels($models);
 } else {
   $models = Doctrine::getLoadedModels();
 }
 }}}

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