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
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletionscomponents/ldap.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -129,8 +129,16 @@ delete existing ones::
$entry = $result[0];
$entry->setAttribute('email', array('fabpot@symfony.com'));
$entityManager->update($entry);

// Adding or removing values to a multi-valued attribute is more efficient than using update()
$entityManager->addAttributeValues($entry, 'telephoneNumber', array('+1.111.222.3333', '+1.222.333.4444'));
$entityManager->removeAttributeValues($entry, 'telephoneNumber', array('+1.111.222.3333', '+1.222.333.4444'));

// Removing an existing entry
$entityManager->remove(new Entry('cn=Test User,dc=symfony,dc=com'));

.. 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.


.. _Packagist: https://packagist.org/packages/symfony/ldap

[8]ページ先頭

©2009-2025 Movatter.jp