Hi,

If anyone is interested to load fixtures in transaction apply patch
attached below. After this modification loading fixtures will take
half time!

--- a/src/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/
doctrine/Doctrine/Data/Import.php
+++ b/src/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/
doctrine/Doctrine/Data/Import.php
@@ -336,6 +336,8 @@ class Doctrine_Data_Import extends Doctrine_Data

         $manager = Doctrine_Manager::getInstance();
         foreach ($manager as $connection) {
+            $connection->beginTransaction();
+
             $tree = $connection->unitOfWork-
>buildFlushTree(array_keys($array));

             foreach ($tree as $model) {
@@ -346,6 +348,8 @@ class Doctrine_Data_Import extends Doctrine_Data
                     }
                 }
             }
+
+            $connection->commit();
         }

     }
@@ -399,4 +403,4 @@ class Doctrine_Data_Import extends Doctrine_Data
     {
         return sprintf('(%s) ', $table->getTableName());
     }
-}
\ No newline at end of file
+}

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" 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.com/group/symfony-users?hl=en

Reply via email to