Author: Jonathan.Wage
Date: 2010-03-29 19:28:03 +0200 (Mon, 29 Mar 2010)
New Revision: 28871

Modified:
   
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsDiffTask.class.php
   
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsDiffTask.class.php
Log:
[1.3, 1.4] Fixing issue with migrations diff autoloading (fixes #7272)


Modified: 
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsDiffTask.class.php
===================================================================
--- 
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsDiffTask.class.php
   2010-03-29 13:14:01 UTC (rev 28870)
+++ 
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsDiffTask.class.php
   2010-03-29 17:28:03 UTC (rev 28871)
@@ -60,6 +60,8 @@
       $this->getFilesystem()->mkdirs($config['migrations_path']);
     }
 
+    spl_autoload_register(array('Doctrine_Core', 'modelsAutoload'));
+
     $this->callDoctrineCli('generate-migrations-diff', array(
       'yaml_schema_path' => 
$this->prepareSchemaFile($config['yaml_schema_path']),
     ));

Modified: 
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsDiffTask.class.php
===================================================================
--- 
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsDiffTask.class.php
   2010-03-29 13:14:01 UTC (rev 28870)
+++ 
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsDiffTask.class.php
   2010-03-29 17:28:03 UTC (rev 28871)
@@ -59,6 +59,8 @@
       $this->getFilesystem()->mkdirs($config['migrations_path']);
     }
 
+    spl_autoload_register(array('Doctrine_Core', 'modelsAutoload'));
+
     $this->callDoctrineCli('generate-migrations-diff', array(
       'yaml_schema_path' => 
$this->prepareSchemaFile($config['yaml_schema_path']),
     ));

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

Reply via email to