Permalink
Browse files

fix load fixture array in an object field

  • Loading branch information...
1 parent 26596d1 commit eb87d37d7bd78bde5fb7795805ebd8a1a3feb9b4 @jaugustin jaugustin committed Dec 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 DataFixtures/Loader/AbstractDataLoader.php
@@ -178,7 +178,7 @@ protected function loadDataFromArray($data = null)
} 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;
}
}

0 comments on commit eb87d37

Please sign in to comment.