Issue #2386559 by fago, yched, amateescu, jibran, plach: ERItem::setValue(array('entity' => $entity) produces broken Items