Skip to content

Conversation

@HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Oct 8, 2025

Currently refresh_all() doesn't work with flush_after() because the ids never get updated.

$this->flush($om);
}
}
PersistedObjectsTracker::updateIds();
Copy link
Member

@nikophil nikophil Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Juste for you to know, in a further PR, we plan to remove this method, in favor of future so-called "foundry hooks"

see #986

I think it will work out of the box then. But we're not ready to merge it, so let's release your fix now 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for the info.

Copy link
Member

@nikophil nikophil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @HypeMC

those bug fixes are very much appreciated! 😊

@nikophil nikophil merged commit f06d58d into zenstruck:2.x Oct 9, 2025
73 checks passed
@HypeMC HypeMC deleted the update-ids-after-flush branch October 9, 2025 22:42
@HypeMC
Copy link
Contributor Author

HypeMC commented Oct 10, 2025

@nikophil Thank you for the reviews/merges, they are appreciated as well 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants