Skip to content

Add EntityTrait::patch() for mass assigning fields.#18219

Merged
ADmad merged 2 commits into5.nextfrom
feat/5.2-entity-patch
Mar 5, 2025
Merged

Add EntityTrait::patch() for mass assigning fields.#18219
ADmad merged 2 commits into5.nextfrom
feat/5.2-entity-patch

Conversation

@ADmad
Copy link
Member

@ADmad ADmad commented Mar 1, 2025

Passing multiple field values to EntityTrait::set() is deprecated.

Passing multiple field values to EntityTrait::set() is deprecated.
@ADmad ADmad added this to the 5.2.0 milestone Mar 1, 2025
@ADmad ADmad force-pushed the feat/5.2-entity-patch branch from ad91221 to 69108be Compare March 1, 2025 21:03
@ADmad ADmad requested a review from markstory March 1, 2025 21:10
Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

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

Looks good to me. We'll need to update the docs for this and I can look into a rector rule

@ADmad
Copy link
Member Author

ADmad commented Mar 5, 2025

I'll make a docs PR.

@ADmad ADmad merged commit cf226c1 into 5.next Mar 5, 2025
10 of 13 checks passed
@ADmad ADmad deleted the feat/5.2-entity-patch branch March 5, 2025 03:22
ADmad added a commit to cakephp/docs that referenced this pull request Mar 5, 2025
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