Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update session examples in docs #8795

Merged
merged 1 commit into from
Jun 28, 2021
Merged

Update session examples in docs #8795

merged 1 commit into from
Jun 28, 2021

Conversation

SenseException
Copy link
Member

As mentioned in #8766 the session-section in the docs needed an update that discourages the usage of an entity in the session just as not using the methods detach() and merge(). Because users tend to copy-paste code, I struggled a bit with simple low-line examples and tried to keep them small.

Working with scalars
~~~~~~~~~~~~~~~~~~~~

In simpler applications there is no need to work with objects in sessions and can use
Copy link
Member

Choose a reason for hiding this comment

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

"and you can use"? "and one can use"?

Verified

This commit was signed with the committer’s verified signature.
greg0ire Grégoire Paris
The session examples contained approaches that aren't favorable for an application
and needed an overhaul using either scalar values or an DTO instead of the whole
entity with detach() and merge().
@SenseException SenseException requested a review from greg0ire June 28, 2021 20:27
@SenseException SenseException merged commit 233d9b0 into doctrine:2.9.x Jun 28, 2021
@SenseException SenseException deleted the session-handling-docs branch June 28, 2021 21:23
@greg0ire greg0ire added this to the 2.9.4 milestone Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants