Skip to content
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

!!! BUGFIX: Keep supertypes unset in supertypes unset #599

Merged

Conversation

kdambekalns
Copy link
Member

No, the title is not an error. Here is what happens:

  • You define a node type and inherit from "Document"
  • In that NodeType unset a supertype declared in "Document"
  • Now inherit from that nodetype again, and whatever the unset supertype
    declared, will be back

This is caused by how the inherited supertypes are read using the method
getDeclaredSuperTypes, which only returns the used supertypes, not the
ones not used - even if "actively not used".

This change fixes that and is marked breaking because there might be things
disappearing from your nodetypes, depending on the nesting of your hierarchy.

No, the title is not an error. Here is what happens:

- You define a node type and inherit from "Document"
- In that NodeType unset a supertype declared in "Document"
- Now inherit from that nodetype again, and whatever the unset supertype
  declared, will be back

This is caused by how the inherited supertypes are read using the method
getDeclaredSuperTypes, which only returns the used supertypes, not the
ones not used - even if "actively not used".

This change fixes that and is marked breaking because there might be things
disappearing from your nodetypes, depending on the nesting of your hierarchy.
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @radmiraal, @robertlemke and @skurfuerst to be potential reviewers

@kitsunet
Copy link
Member

That sounds reasonable indeed.

@dfeyer
Copy link
Contributor

dfeyer commented Jun 30, 2016

Make sense

@kdambekalns kdambekalns merged commit 12b31d9 into neos:2.0 Jul 11, 2016
@kdambekalns kdambekalns deleted the bugfix-supertype-inheritance-removal branch July 11, 2016 07:56
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.

4 participants