Author: Jonathan.Wage
Date: 2010-03-30 22:55:38 +0200 (Tue, 30 Mar 2010)
New Revision: 28900
Modified:
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php
Log:
[1.3, 1.4] Fixing issue with form generator and string indexes instead of array
(closes #8024)
Modified:
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php
===================================================================
---
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php
2010-03-30 20:54:17 UTC (rev 28899)
+++
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php
2010-03-30 20:55:38 UTC (rev 28900)
@@ -573,6 +573,8 @@
$indexes = $this->table->getOption('indexes');
foreach ($indexes as $name => $index)
{
+ $index['fields'] = (array) $index['fields'];
+
if (isset($index['type']) && $index['type'] == 'unique')
{
$tmp = $index['fields'];
Modified:
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php
===================================================================
---
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php
2010-03-30 20:54:17 UTC (rev 28899)
+++
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php
2010-03-30 20:55:38 UTC (rev 28900)
@@ -573,6 +573,8 @@
$indexes = $this->table->getOption('indexes');
foreach ($indexes as $name => $index)
{
+ $index['fields'] = (array) $index['fields'];
+
if (isset($index['type']) && $index['type'] == 'unique')
{
$tmp = $index['fields'];
--
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.