Skip to content

Add documentation about the Doctrine EntityValueResolver #17393

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

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

jderusse
Copy link
Member

fixes #43854

This PR replaces the documentation about the Doctrine ParamterConverter by the new Entity ValueResolver.

It does not cover all the behaviors and possibilities. This was previously documented I the SensioFrameworkExtraBundle (https://symfony.com/bundles/SensioFrameworkExtraBundle/current/annotations/converters.html). I wonder where should I put such documentation for the EntityArgumentResolver ?

@carsonbot carsonbot added this to the 6.2 milestone Oct 23, 2022
@OskarStark OskarStark changed the title Add documentation about the Doctrine Entity Value Resolver Add documentation about the Doctrine EntityValueResolver Oct 24, 2022
@jderusse jderusse force-pushed the entity-value-resolver branch from dbb0f13 to 410e60b Compare October 24, 2022 06:59
@wouterj
Copy link
Member

wouterj commented Oct 25, 2022

I wonder where should I put such documentation for the EntityArgumentResolver ?

I think the "Automatically Fetching Objects (EntityValueResolver)" section in the doctrine guide would be a good place for this. If it gets very verbose (because of the many options), we might want to move it to a sub-guide under doctrine/ and link it from the main guide.

@jderusse jderusse force-pushed the entity-value-resolver branch from 410e60b to 36d91fe Compare November 27, 2022 17:17
@jderusse
Copy link
Member Author

Documentation about options added

@wouterj wouterj merged commit b51821f into symfony:6.2 Dec 6, 2022
@wouterj
Copy link
Member

wouterj commented Dec 6, 2022

Hi @jderusse! Thanks for writing the bulk of these docs!

I've fixed the remaining open comments and removed the "First, enable the feature" step as I believe this are now automatic.

@jderusse jderusse deleted the entity-value-resolver branch December 6, 2022 15:13
OskarStark added a commit to OskarStark/symfony-docs that referenced this pull request Dec 6, 2022
* 6.2:
  Fix typo, change parameter $accesToken to $token
  Fix lint issues
  [symfony#17393] Finish entity value resolver docs
  [FrameworkBundle] Rename option `catch_all_throwables` to `handle_all_throwables` in documentation
  Add documentation about the Doctrine Entity Value Resolver
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.

5 participants