Skip to content

Clarify that create returns a separate entity - #64

Open
elpete wants to merge 1 commit into
12.0.0from
docs/245-create-returned-entity
Open

Clarify that create returns a separate entity#64
elpete wants to merge 1 commit into
12.0.0from
docs/245-create-returned-entity

Conversation

@elpete

@elpete elpete commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Related to coldbox-modules/quick#245.

Review

Quick create() is a factory method: it creates, saves, and returns a new entity instead of mutating the entity used to invoke it. The existing documentation showed the returned-value form but did not warn that ignoring the return value leaves the original entity unloaded.

This adds a warning to the canonical Creating New Entities page and demonstrates assigning the returned entity.

Supersedes coldbox-modules/quick#290.

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.

1 participant