rng icon indicating copy to clipboard operation
rng copied to clipboard

Postgres tests failing due to string usage in integer field.

Open dpi opened this issue 10 years ago • 1 comments

DER issue: Support non-numeric entity ID's

Test: https://www.drupal.org/pift-ci-job/31805

exception: [Uncaught exception] Line 658 of core/lib/Drupal/Core/Database/Connection.php: Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "registration_type_a" LINE 5: ...d (courier_template_collection.owner__target_id = 'registrat...

Stack:

... courier_entity_predelete(Object, 'registration_type') call_user_func_array('courier_entity_predelete', Array) Drupal\Core\Extension\ModuleHandler->invokeAll('entity_predelete', Array) Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('predelete', Object) Drupal\Core\Entity\EntityStorageBase->delete(Array) Drupal\Core\Entity\Entity->delete() Drupal\rng\Tests\RegistrationTypeTest->testRegistrationTypes() ...

dpi avatar Sep 11 '15 22:09 dpi

Can sort-of workaround this by checking if deleted entities are not bundle entities. This still means that entities with non numeric ID's are still unsupported.

dpi avatar Feb 27 '16 14:02 dpi