Author: jwage
Date: 2008-08-27 19:52:22 +0100 (Wed, 27 Aug 2008)
New Revision: 4850

Modified:
   branches/1.0/lib/Doctrine/Record/Generator.php
Log:
fixes #1389


Modified: branches/1.0/lib/Doctrine/Record/Generator.php
===================================================================
--- branches/1.0/lib/Doctrine/Record/Generator.php      2008-08-27 08:53:53 UTC 
(rev 4849)
+++ branches/1.0/lib/Doctrine/Record/Generator.php      2008-08-27 18:52:22 UTC 
(rev 4850)
@@ -355,7 +355,8 @@
         if ($this->_options['generateFiles']) {
             if (isset($this->_options['generatePath']) && 
$this->_options['generatePath']) {
                 $builder->setTargetPath($this->_options['generatePath']);
-                $builder->setOptions($this->_options['builderOptions']);
+                $builderOptions = isset($this->_options['builderOptions']) ? 
(array) $this->_options['builderOptions']:array();
+                $builder->setOptions($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