Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[DependencyInjection] Doc for #30257 Allow to choose an index for tagged collection #11009
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
[DependencyInjection] Doc for #30257 Allow to choose an index for tagged collection #11009
Changes from all commits
980b3d3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this
index_attribute_name
? It's the first time it's mentioned in the docs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one was introduced by the new code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doc suggests that there is an option called
index_attribute_name
. I can't see it in the previous examples, where we only useindex_by
orinex-by
. So, is this an error? Is there a missing example? Am I missing something? Thanks.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hi @javiereguiluz ,
indeed the option is called
index_by
into the!tagged argument
.With a little example it would be better :
What we explain in the documentation, is that we can, here, omit the attribute called
key
If we implement a method calledgetDefaultIndexName
If in the
index_by
option I called itsun
so the omit attribute would besun
.Is that more clear ?
The rest of the docs explains that with example.
If you find a more intuitive way to explains this, don't hesitate tu push to this PR ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Javier, the sentence should be
You can omit the ``key`` attribute...
, then directly show the usage ofwithin the tip, and discard the following.