Hi, Jonathan, would you consider applying this patch to the next Doctrine1 release?
Best regards, Michal 2010/11/23 Mateusz Kaczmarek <mateusz.kaczma...@gmail.com>: > 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 symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en