Author: stefbach
Date: 2010-03-09 11:04:50 +0100 (Tue, 09 Mar 2010)
New Revision: 28425

Modified:
   plugins/sfAmfPlugin/
   
plugins/sfAmfPlugin/lib/task/generator/propel/sfAmfPluginPropelValueObjectGenerator.php
Log:
[sfAmfPlugin] Updated Propel ValueObject generator



Property changes on: plugins/sfAmfPlugin
___________________________________________________________________
Modified: svk:merge
   - 7ce51a29-67ea-4596-9a32-2e0fcaf8b5e0:/local/symfony/sfAmfPlugin:35
   + 7ce51a29-67ea-4596-9a32-2e0fcaf8b5e0:/local/symfony/sfAmfPlugin:37

Modified: 
plugins/sfAmfPlugin/lib/task/generator/propel/sfAmfPluginPropelValueObjectGenerator.php
===================================================================
--- 
plugins/sfAmfPlugin/lib/task/generator/propel/sfAmfPluginPropelValueObjectGenerator.php
     2010-03-09 07:55:41 UTC (rev 28424)
+++ 
plugins/sfAmfPlugin/lib/task/generator/propel/sfAmfPluginPropelValueObjectGenerator.php
     2010-03-09 10:04:50 UTC (rev 28425)
@@ -29,22 +29,11 @@
     foreach ($this->dbMap->getTables() as $tableName => $table)
     {
       $this->table = $table;
-      $tableClassname = $table->getClassname();
 
-      $serviceFile = $this->getAbsoluteFileName($table->getClassname(), 
'ValueObject');
-
-      if (file_exists($serviceFile))
-      {
-        throw new sfCommandException(
-          sprintf("ValueObjects already exist in %s directory. You must remove 
them manually",
-          $this->getServiceDirname()
-        ));
-      }
+      $voFile = $this->getAbsoluteFileName($table->getClassname() . 
'ValueObject');
       
-      file_put_contents($serviceFile, 
+      $this->writeFile($voFile, 
         $this->evalTemplate('sfAmfValueObjectTemplate.php'));
-
-      $this->replaceTokens($serviceFile);
     }
   }
 

-- 
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