fix load fixture array in an object field
This commit is contained in:
parent
26596d1df4
commit
eb87d37d7b
|
@ -178,7 +178,7 @@ abstract class AbstractDataLoader extends AbstractDataHandler implements DataLoa
|
||||||
} catch (PropelException $e) {
|
} catch (PropelException $e) {
|
||||||
// Check whether this is actually an array stored in the object.
|
// 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 ('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;
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue