Skip to content

Instantly share code, notes, and snippets.

@Burgov
Created June 27, 2012 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Burgov/3399c0ad5e0a44a29f98 to your computer and use it in GitHub Desktop.
Save Burgov/3399c0ad5e0a44a29f98 to your computer and use it in GitHub Desktop.
Notice: Undefined index: person in /home/bart/workspace/roompot/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php line 387
500 Internal Server Error - ErrorException
Stack Trace
in /home/bart/workspace/roompot/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php at line 387
$targetMapping = $this->_em->getClassMetadata($this->_class->associationMappings[$idField]['targetEntity']);
$where[] = $this->_class->associationMappings[$idField]['joinColumns'][0]['name'];
$params[] = $id[$idField];
$types[] = $targetMapping->fieldMappings[$targetMapping->identifier[0]]['type'];
} else {
$where[] = $this->quoteStrategy->getColumnName($idField, $this->_class, $this->_platform);
$params[] = $id[$idField];
at ErrorHandler ->handle ('8', 'Undefined index: person', '/home/bart/workspace/roompot/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php', '387', array('entity' => object(RegistrarDepartmentMapping), 'quotedTableName' => 'RegistrarDepartmentMapping', 'updateData' => array('head' => true), 'versioned' => null, 'set' => array('head = ?'), 'params' => array(true, '10'), 'types' => array('boolean'), 'columnName' => 'head', 'value' => true, 'column' => 'head', 'placeholder' => '?', 'where' => array('registrar_id'), 'id' => array('registrar' => '10', 'department' => '1112'), 'idField' => 'registrar', 'targetMapping' => object(ClassMetadata)))
in /home/bart/workspace/roompot/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php at line 387
at BasicEntityPersister ->_updateTable (object(RegistrarDepartmentMapping), 'RegistrarDepartmentMapping', array('head' => true), null)
in /home/bart/workspace/roompot/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php at line 337
at BasicEntityPersister ->update (object(RegistrarDepartmentMapping))
in /home/bart/workspace/roompot/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php at line 966
at UnitOfWork ->executeUpdates (object(ClassMetadata))
in /home/bart/workspace/roompot/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php at line 314
at UnitOfWork ->commit (null)
in /home/bart/workspace/roompot/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php at line 361
at EntityManager ->flush ()
in /home/bart/workspace/roompot/src/Roompot/TRSBundle/Controller/RegistrarController.php at line 174
at RegistrarController ->makeDepartmentHeadAction ('10', '1112', true)
at call_user_func_array (array(object(RegistrarController), 'makeDepartmentHeadAction'), array('10', '1112', true))
in kernel.root_dir/cache/sitwst05_roompot/classes.php at line 4903
at HttpKernel ->handleRaw (object(Request), '1')
in kernel.root_dir/cache/sitwst05_roompot/classes.php at line 4867
at HttpKernel ->handle (object(Request), '1', true)
in kernel.root_dir/cache/sitwst05_roompot/classes.php at line 5746
at HttpKernel ->handle (object(Request), '1', true)
in kernel.root_dir/bootstrap.php.cache at line 575
at Kernel ->handle (object(Request), '1', true)
in /home/bart/workspace/roompot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 447
at HttpCache ->forward (object(Request), true, null)
in /home/bart/workspace/roompot/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php at line 60
at HttpCache ->forward (object(Request), true)
in /home/bart/workspace/roompot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 416
at HttpCache ->fetch (object(Request), true)
in /home/bart/workspace/roompot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 316
at HttpCache ->lookup (object(Request), true)
in /home/bart/workspace/roompot/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 193
at HttpCache ->handle (object(Request))
in /home/bart/workspace/roompot/web/app_dev.php at line 34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment