Skip to content

Conversation

@roxblnfk
Copy link
Member

🔍 What was changed

Added \Cycle\ORM\Transaction\UnitOfWork::hasPendingChanges()

    /**
     * Check if there are pending changes in the unit of work.
     *
     * @return bool True if there are pending changes, false otherwise.
     *         In case the transaction is finished, it will always return false.
     *         In case the transaction is in process, it will always return true.
     *         In case of failure, it will return true and pending changes can be retried.
     */
    public function hasPendingChanges(): bool

@roxblnfk roxblnfk merged commit 10711a6 into 2.x Jan 29, 2026
26 of 33 checks passed
@roxblnfk roxblnfk deleted the uow-has-pending-chages branch January 29, 2026 18:30
roxblnfk added a commit to rincler/orm that referenced this pull request Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants