Skip to content

[Validator] add class name to the cache key #20745

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

Closed
wants to merge 3 commits into from

Conversation

Simperfit
Copy link
Contributor

@Simperfit Simperfit commented Dec 3, 2016

Q A
Branch? 3.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #20685
License MIT
Doc PR

Adding the class name to the cache key to avoid collision

@Simperfit Simperfit changed the title fix - #20685: add class name to the cache key [WIP] fix - #20685: add class name to the cache key Dec 3, 2016
@Simperfit Simperfit force-pushed the fix/20685 branch 2 times, most recently from 28454d0 to 122c01d Compare December 4, 2016 21:05
@Simperfit Simperfit changed the title [WIP] fix - #20685: add class name to the cache key fix - #20685: add class name to the cache key Dec 4, 2016
@Simperfit Simperfit changed the title fix - #20685: add class name to the cache key [Validator] fix - #20685: add class name to the cache key Dec 5, 2016
Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

Can you also add a test with a relation between ChildA and ChilB?

{
/**
* @Assert\Valid
* @Assert\NotBlank
Copy link
Member

Choose a reason for hiding this comment

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

You should use another assertion to be sure that there is no collision.

@dunglas
Copy link
Member

dunglas commented Dec 8, 2016

👍

protected $lastName;
public $reference;
public $reference2;
private $internal;
public $data = 'Overridden data';
public $initialized = false;

Copy link
Member

Choose a reason for hiding this comment

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

this line should be kept

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@nicolas-grekas nicolas-grekas changed the title [Validator] fix - #20685: add class name to the cache key [Validator] add class name to the cache key Dec 8, 2016
@nicolas-grekas
Copy link
Member

Thank you @Simperfit.

nicolas-grekas added a commit that referenced this pull request Dec 8, 2016
This PR was squashed before being merged into the 3.1 branch (closes #20745).

Discussion
----------

[Validator] add class name to the cache key

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |  #20685
| License       | MIT
| Doc PR        |

Adding the class name to the cache key to avoid collision

Commits
-------

1681fc9 [Validator] add class name to the cache key
@Simperfit Simperfit deleted the fix/20685 branch December 8, 2016 20:36
This was referenced Dec 13, 2016
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