Author: jwage
Date: 2008-08-27 04:20:02 +0100 (Wed, 27 Aug 2008)
New Revision: 4834

Modified:
   branches/1.0/lib/Doctrine/Record/Generator.php
Log:
fixes #1355 - You can now set an array of options to be passed to the 
Doctrine_Import_Builder for the builderOptions option key.


Modified: branches/1.0/lib/Doctrine/Record/Generator.php
===================================================================
--- branches/1.0/lib/Doctrine/Record/Generator.php      2008-08-27 03:14:06 UTC 
(rev 4833)
+++ branches/1.0/lib/Doctrine/Record/Generator.php      2008-08-27 03:20:02 UTC 
(rev 4834)
@@ -37,12 +37,13 @@
      *
      * @var array $_options     an array of plugin specific options
      */
-    protected $_options = array('generateFiles' => false,
-                                'generatePath'  => false,
-                                'identifier'    => false,
-                                'table'         => false,
-                                'pluginTable'   => false,
-                                'children'      => array());
+    protected $_options = array('generateFiles'  => false,
+                                'generatePath'   => false,
+                                'builderOptions' => array(),
+                                'identifier'     => false,
+                                'table'          => false,
+                                'pluginTable'    => false,
+                                'children'       => array());
 
     /**
      * _initialized
@@ -354,7 +355,7 @@
         if ($this->_options['generateFiles']) {
             if (isset($this->_options['generatePath']) && 
$this->_options['generatePath']) {
                 $builder->setTargetPath($this->_options['generatePath']);
-
+                $builder->setOptions($this->_options['builderOptions']);
                 $builder->buildRecord($definition);
             } else {
                 throw new Doctrine_Record_Exception('If you wish to generate 
files then you must specify the path to generate the files in.');


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