Registration::getHostEntity() can become stale

Created on 15 January 2025, 3 months ago

Problem/Motivation

Another quality of life improvement for registration_change_host: Registration::getHostEntity() becomes stale if the host entity changes.

Steps to reproduce

$old_host = $registration->getHostEntity();
assert($old_host->id() != 32);
$registration->set('entity_id', 32);
$new_host = $registration->getHostEntity();
assert($new_host->id() != 32);
assert($new_host->id() == $old_host->id());

Proposed resolution

Update the host entity when the underlying fields are set.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

3.3

Component

Registration Core

Created by

πŸ‡¬πŸ‡§United Kingdom jonathanshaw Stroud, UK

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024