From eb87d37d7bd78bde5fb7795805ebd8a1a3feb9b4 Mon Sep 17 00:00:00 2001 From: jaugustin Date: Fri, 21 Dec 2012 15:07:27 +0100 Subject: [PATCH] fix load fixture array in an object field --- DataFixtures/Loader/AbstractDataLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataFixtures/Loader/AbstractDataLoader.php b/DataFixtures/Loader/AbstractDataLoader.php index 3b23491..3125cd0 100644 --- a/DataFixtures/Loader/AbstractDataLoader.php +++ b/DataFixtures/Loader/AbstractDataLoader.php @@ -178,7 +178,7 @@ abstract class AbstractDataLoader extends AbstractDataHandler implements DataLoa } catch (PropelException $e) { // Check whether this is actually an array stored in the object. if ('Cannot fetch TableMap for undefined table: '.substr($name, 0, -1) === $e->getMessage()) { - if ('ARRAY' !== $tableMap->getColumn($name)->getType()) { + if ('ARRAY' !== $tableMap->getColumn($name)->getType() && 'OBJECT' !== $tableMap->getColumn($name)->getType()) { throw $e; } }