#111652Remove DomainObjectInterface::_isNew()
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
-
Gerrit Code Review pushed patch set 1 for main to change 98165 status
NewUnder Review 11/28/26, 17:14 -
Anonymous commented and changed status
Under ReviewResolved done0 %100 % 11/28/26, 19:45
Applied in changeset commit:673a9237671ebcb56c1faaf156e122444e19f2c5.