zikula/core — Issue #289: Error with new Doctrine-based blocks code
Author: craigh
Created: 2012-03-06 12:57:05+00:00
State: open

```Uncaught exception Could not convert database value "" to Doctrine Type array in /Applications/MAMP/htdocs/core.git/src/plugins/Doctrine/lib/vendor/Doctrine/DBAL/Types/ConversionException.php line, 46
#0 /Applications/MAMP/htdocs/core.git/src/plugins/Doctrine/lib/vendor/Doctrine/DBAL/Types/ArrayType.php(48): Doctrine\DBAL\Types\ConversionException::conversionFailed('', 'array')
#1 /Applications/MAMP/htdocs/core.git/src/plugins/Doctrine/lib/vendor/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(235): Doctrine\DBAL\Types\ArrayType->convertToPHPValue('', Object(Doctrine\DBAL\Platforms\MySqlPlatform))
#2 /Applications/MAMP/htdocs/core.git/src/plugins/Doctrine/lib/vendor/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(276): Doctrine\ORM\Internal\Hydration\AbstractHydrator->_gatherRowData(Array, Array, Array, Array)
#3 /Applications/MAMP/htdocs/core.git/src/plugins/Doctrine/lib/vendor/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(133): Doctrine\ORM\Internal\Hydration\ObjectHydrator->_hydrateRow(Array, Array, Array)
#4 /Applications/MAMP/htdocs/core.git/src/plugins/Doctrine/lib/vendor/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(99): Doctrine\ORM\Internal\Hydration\ObjectHydrator->_hydrateAll()
#5 /Applications/MAMP/htdocs/core.git/src/plugins/Doctrine/lib/vendor/Doctrine/ORM/AbstractQuery.php(615): Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll(Object(Doctrine\DBAL\Driver\PDOStatement), Object(Doctrine\ORM\Query\ResultSetMapping), Array)
#6 /Applications/MAMP/htdocs/core.git/src/plugins/Doctrine/lib/vendor/Doctrine/ORM/AbstractQuery.php(413): Doctrine\ORM\AbstractQuery->execute(Array, 1)
#7 /Applications/MAMP/htdocs/core.git/src/system/Blocks/lib/Blocks/Api/User.php(98): Doctrine\ORM\AbstractQuery->getResult()
#8 [internal function]: Blocks_Api_User->getall(Array)
#9 /Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php(1089): call_user_func(Array, Array)
#10 /Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php(1194): ModUtil::exec('Blocks', 'user', 'getall', Array, true, NULL)
#11 /Applications/MAMP/htdocs/core.git/src/lib/util/BlockUtil.php(490): ModUtil::apiFunc('Blocks', 'user', 'getall')
#12 /Applications/MAMP/htdocs/core.git/src/lib/util/BlockUtil.php(507): BlockUtil::getBlocksInfo()
#13 /Applications/MAMP/htdocs/core.git/src/lib/util/BlockUtil.php(103): BlockUtil::getBlockInfo(5)
#14 /Applications/MAMP/htdocs/core.git/src/lib/viewplugins/function.blockposition.php(51): BlockUtil::displayPosition('topnav', false, true)
#15 /Applications/MAMP/htdocs/core.git/src/ztemp/Theme_compiled/Andreas08/home.php(11): smarty_function_blockposition(Array, Object(Zikula_View_Theme))
#16 /Applications/MAMP/htdocs/core.git/src/lib/Zikula/View.php(2817): include('/Applications/M...')
#17 /Applications/MAMP/htdocs/core.git/src/lib/Zikula/View.php(729): Zikula_View->_fetch('home.tpl', '', '', false)
#18 /Applications/MAMP/htdocs/core.git/src/lib/Zikula/View/Theme.php(316): Zikula_View->fetch('home.tpl', '')
#19 /Applications/MAMP/htdocs/core.git/src/index.php(159): Zikula_View_Theme->themefooter()
#20 {main}```
@tfotis