Missing entity validation constraint: don't allow new entities when there is an existing one with the same ID

Created on 30 August 2017, over 7 years ago
Updated 15 February 2025, 9 days ago

Problem/Motivation

What are we going to do in the case of POSTing with a duplicate ID that already exists? I tried this and it is not caught by the validation and gets a 500 error which makes sense because typed data doesn't have a concept of this?
Would we have to create a validator that extended \Drupal\Core\TypedData\Validation\RecursiveValidator to check for preexisting ids?

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Closed: outdated

Version

11.0 🔥

Component

entity system

Created by

🇩🇪Germany dawehner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024