Author: guilhermeblanco
Date: 2008-09-11 19:42:45 +0100 (Thu, 11 Sep 2008)
New Revision: 4908
Modified:
branches/1.0/lib/Doctrine/Data/Import.php
Log:
fixes #1451. Thanks for the patch!
Modified: branches/1.0/lib/Doctrine/Data/Import.php
===================================================================
--- branches/1.0/lib/Doctrine/Data/Import.php 2008-09-11 11:56:24 UTC (rev
4907)
+++ branches/1.0/lib/Doctrine/Data/Import.php 2008-09-11 18:42:45 UTC (rev
4908)
@@ -119,7 +119,7 @@
// do the same for the row information
$this->_rows[$className][$rowKey] = $row;
- foreach ($row as $key => $value) {
+ foreach ((array) $row as $key => $value) {
if (Doctrine::getTable($className)->hasRelation($key) &&
is_array($value)) {
$keys = array_keys($value);
@@ -190,7 +190,7 @@
{
$obj = $this->_importedObjects[$rowKey];
- foreach ($row as $key => $value) {
+ foreach ((array) $row as $key => $value) {
if (method_exists($obj, 'set' .
Doctrine_Inflector::classify($key))) {
$func = 'set' . Doctrine_Inflector::classify($key);
$obj->$func($value);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---