Issue Task Resolved

#111652Remove DomainObjectInterface::_isNew()

Alexander Schnitzler 11/28/26, 17:02 updated 11/28/26, 19:45

Description

DomainObjectInterface::_isNew() is marked internal and only checks whether the uid is null. getUid(): ?int is part of the same interface, so the method duplicates public API.

All callers in the Core (persistence backend, persistence manager, DebuggerUtility, form ViewHelper) check getUid() === null instead, and the method is removed from the interface and from AbstractDomainObject.

Although the method is internal, the removal is documented as a breaking change, because extensions call it. The extension scanner detects remaining calls.

Migration: replace $object->_isNew() with $object->getUid() === null.

Reviews 1

History 12

  1. Gerrit Code Review pushed patch set 1 for main to change 98165 status New Under Review 11/28/26, 17:14

  2. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 11/28/26, 19:45

    Applied in changeset commit:673a9237671ebcb56c1faaf156e122444e19f2c5.