Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Documented how to add or remove values of multi-valued attributes#9553

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:masterfromjean-gui:master
Apr 16, 2018

Conversation

@jean-gui
Copy link
Contributor

@xabbuhxabbuh added this to the4.1 milestoneApr 10, 2018
$entityManager->update($entry);
// Adding or removing values to a multi-valued attribute is more efficient than using update()
$entityManager->addAttributeValues($entry, 'telephoneNumber', ['+1.111.222.3333', '+1.222.333.4444']);
Copy link
Member

Choose a reason for hiding this comment

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

For consistency please us the long array notation here.

@xabbuhxabbuh added the Ldap labelApr 10, 2018
@xabbuh
Copy link
Member

I would also add aversionadded directive below to explain that these methods are new:

..versionadded::4.1    The ``addAttributeValues()`` and ``removeAttributeValues()`` methods    were introduced in Symfony 4.1.

@jean-gui
Copy link
ContributorAuthor

@xabbuh Done.


..versionadded::4.1
The ``addAttributeValues()`` and ``removeAttributeValues()`` methods
were introduced in Symfony 4.1.
Copy link
Member

Choose a reason for hiding this comment

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

I think we need a blank line after this paragraph to have it rendered correctly.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I've added it.

@javiereguiluz
Copy link
Member

@jean-gui thanks for adding this missing docs. It was a nice first contribution to Symfony Docs!

jean-gui reacted with heart emoji

@javiereguiluzjaviereguiluz merged commit40df041 intosymfony:masterApr 16, 2018
javiereguiluz added a commit that referenced this pull requestApr 16, 2018
…tributes (jean-gui)This PR was merged into the master branch.Discussion----------Documented how to add or remove values of multi-valued attributesRelated tosymfony/symfony#21856<!--If your pull request fixes a BUG, use the oldest maintained branch that containsthe bug (seehttps://symfony.com/roadmap for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `master` for features of unreleased versions).-->Commits-------40df041 Documented how to add or remove values of multi-valued attributes
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

4 participants

@jean-gui@xabbuh@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp