Skip to content

Instantly share code, notes, and snippets.

@chmielot
Created February 24, 2012 20:45
Show Gist options
  • Save chmielot/1903637 to your computer and use it in GitHub Desktop.
Save chmielot/1903637 to your computer and use it in GitHub Desktop.
Stack trace of empty multiple entity choice
Stack Trace
in /home/chmielot/public_html/nordwind/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php at line 65
}
if (error_reporting() & $level && $this->level & $level) {
throw new \ErrorException(sprintf('%s: %s in %s line %d', isset($this->levels[$level]) ? $this->levels[$level] : $level, $message, $file, $line));
}
return false;
at ErrorHandler ->handle ('2', 'array_fill(): Number of elements must be positive', '/home/chmielot/public_html/nordwind/vendor/doctrine-dbal/lib/Doctrine/DBAL/SQLParserUtils.php', '127', array('query' => 'SELECT j0_.id AS id0, ... FROM job j0_ WHERE j0_.id IN (?)', 'params' => array(), 'types' => array('102'), 'isPositional' => true, 'arrayPositions' => array(false), 'bindIndex' => '0', 'name' => '0', 'type' => '102', 'paramPos' => array('928'), 'paramOffset' => '0', 'queryOffset' => '0', 'needle' => '0', 'needlePos' => '928', 'len' => '0'))
at array_fill ('0', '0', '2')
in /home/chmielot/public_html/nordwind/vendor/doctrine-dbal/lib/Doctrine/DBAL/SQLParserUtils.php at line 127
at SQLParserUtils ::expandListParameters ('SELECT j0_.id AS id0 ... FROM job j0_ WHERE j0_.id IN (?)', array(array()), array('102'))
in /home/chmielot/public_html/nordwind/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php at line 623
at Connection ->executeQuery ('SELECT j0_.id AS id0 ... FROM job j0_ WHERE j0_.id IN (?)', array(array()), array('102'), null)
in /home/chmielot/public_html/nordwind/vendor/doctrine/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php at line 46
at SingleSelectExecutor ->execute (object(Connection), array(array()), array('102'))
in /home/chmielot/public_html/nordwind/vendor/doctrine/lib/Doctrine/ORM/Query.php at line 260
at Query ->_doExecute ()
in /home/chmielot/public_html/nordwind/vendor/doctrine/lib/Doctrine/ORM/AbstractQuery.php at line 643
at AbstractQuery ->execute (array(), '1')
in /home/chmielot/public_html/nordwind/vendor/doctrine/lib/Doctrine/ORM/AbstractQuery.php at line 468
at AbstractQuery ->getResult ()
in /home/chmielot/public_html/nordwind/vendor/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php at line 80
at ORMQueryBuilderLoader ->getEntitiesByIds ('id', array())
in /home/chmielot/public_html/nordwind/vendor/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php at line 178
at EntityChoiceList ->getChoicesForValues (array())
in /home/chmielot/public_html/nordwind/vendor/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToValuesTransformer.php at line 74
at ChoicesToValuesTransformer ->reverseTransform (array())
in /home/chmielot/public_html/nordwind/vendor/symfony/src/Symfony/Component/Form/Form.php at line 1083
at Form ->clientToNorm (array())
in /home/chmielot/public_html/nordwind/vendor/symfony/src/Symfony/Component/Form/Form.php at line 539
at Form ->bind (null)
in /home/chmielot/public_html/nordwind/vendor/symfony/src/Symfony/Component/Form/Form.php at line 511
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment