Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

GeneratedHydrator Mixes up private properties #51

Open
staabm opened this issue Apr 28, 2016 · 2 comments
Open

GeneratedHydrator Mixes up private properties #51

staabm opened this issue Apr 28, 2016 · 2 comments
Labels

Comments

@staabm
Copy link
Contributor

staabm commented Apr 28, 2016

As of current implementation, GeneratedHydrator will not distinguish between properties from following
example:

class Foo
{
    private $bar;
}

class Bar extends Foo
{
    private $bar;
}

class Baz extends Foo
{
    private $bar;
}
@pounard
Copy link
Contributor

pounard commented Jan 11, 2017

This is potentially fixed with PR #59 - it orders the private properties in hierarchy order (from the top level parent to lowest child) and set only the children private properties when they are private properties that hide the parent one.

@pounard
Copy link
Contributor

pounard commented Jan 11, 2017

Actually, it's not fixed, it's just more predictable. In order to fix this #5 must be implemented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants