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

Mention the adder/remover support of PropertyInfo#9195

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

Closed
javiereguiluz wants to merge2 commits intosymfony:3.4fromjaviereguiluz:fix_7182

Conversation

@javiereguiluz
Copy link
Member

Thisfixes#7182.

@dunglas
Copy link
Member

Perfect. Thank you very much for documenting this@javiereguiluz!

@dunglas
Copy link
Member

dunglas commentedFeb 2, 2018
edited
Loading

After a second check, I think that the property will be considered writable if it has associated adderand remover methods. If only one of them is present, the PropertyAccessor component cannot update reliably the array, and so doesn't do it.

Should be:

<?php<?phpclass SomeClass{private$analyses;private$feet;publicfunctionaddAnalyse(Dummy$analyse)    {// ...    }publicfunctionremoveAnalyse(Dummy$analyse)    {// ...    }publicfunctionaddFoot(Dummy$foot)    {// ...    }publicfunctionremoveFoot(Dummy$foot)    {// ...    }}

@javiereguiluz
Copy link
MemberAuthor

Thanks for reviewing Kévin. This is a bit confusing, because I took the original example from the tests of your pull request:https://github.com/symfony/symfony/pull/18337/files#diff-cf4f68ffc8f26be7f990461bb282f50cR126

@javiereguiluz
Copy link
MemberAuthor

I have checked this again and you are right ... it checks by default both array mutator methods (add and remove) to determine if it's writable or not. Thanks!

javiereguiluz added a commit that referenced this pull requestMar 19, 2018
…eguiluz)This PR was squashed before being merged into the 3.4 branch (closes#9195).Discussion----------Mention the adder/remover support of PropertyInfoThisfixes#7182.Commits-------620439a Mention the adder/remover support of PropertyInfo
xabbuh added a commit that referenced this pull requestMar 21, 2018
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull requestMar 26, 2018
* 3.4: (21 commits)  added Sam in the core team  minorsymfony#9494 [Console] Change use statement for Process Helper (krizon)  Specify how provide a high availability  Use FQCN as service ID  [symfony#8847] fix another directive  [symfony#8847] fix tip directive  Describe reliability in Lock  Propose identical comparison  [symfony#9195] fix a minor typo  Fixed some variable names  fix some security config examples  Made explicit testing dependencies  No more ambiguity on prod mode  Mention the adder/remover support of PropertyInfo  ...
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull requestMar 26, 2018
* 4.0: (24 commits)  added Sam in the core team  minorsymfony#9494 [Console] Change use statement for Process Helper (krizon)  Specify how provide a high availability  fixing format + language  Documenting make:controller and make:crud  Use FQCN as service ID  Describe reliability in Lock  Propose identical comparison  [symfony#9195] fix a minor typo  Fixed some variable names  fix some security config examples  Made explicit testing dependencies  ...
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

3 participants

@javiereguiluz@dunglas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp