Author: jwage
Date: 2008-05-17 02:17:12 +0100 (Sat, 17 May 2008)
New Revision: 4370
Modified:
branches/0.11/lib/Doctrine/Data/Export.php
Log:
fixes #1036
Modified: branches/0.11/lib/Doctrine/Data/Export.php
===================================================================
--- branches/0.11/lib/Doctrine/Data/Export.php 2008-05-17 01:16:09 UTC (rev 4369)
+++ branches/0.11/lib/Doctrine/Data/Export.php 2008-05-17 01:17:12 UTC (rev 4370)
@@ -194,7 +194,7 @@
$relationValue = $relationClassName . '_' . $value;
$preparedData[$className][$recordKey][$relationAlias] = $relationValue;
- } else {
+ } else if ($record->getTable()->hasColumn($key)) {
$preparedData[$className][$recordKey][$key] = $value;
}
}