-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Migrate Node::getNodeType
#57
Comments
@dlubitz i have the feeling that the migrations cant be possible as clean as suggested and will likely look like having an obsolete step in between (fetching the nodeType first) - $node->getNodeType()->getName();
+ $nodeTypeManager->getNodeType($node->nodeTypeName)->name->value; - $node->getNodeType()->getTypeOfAutoCreatedChildNode(NodeName::fromString('name'));
+ $nodeTypeManager->getTypeOfTetheredNode($nodeTypeManager->getNodeType($node->nodeTypeName)->name, NodeName::fromString('name')); ... or we can have a rector rule to normalize |
neos/neos-development-collection#4906 (comment)
|
Solves partially #57 Also migrates `q(node).property('_nodeType.name')` as we actually used the syntax once as well: neos/neos-development-collection#3641
Following code should be migrated:
For fusion:
Node::getNodeType
removal (!!! TASK: RemoveNode::nodeType
neos-development-collection#5021)(existing migration)
NodeType::tetheredNodeTypeDefinitions
change (!!! TASK: Followup #4520 IntroduceNodeType::tetheredNodeTypeDefinitions
neos-development-collection#4906)These rector migration would need to be adjusted so they dont pass the
$nodeType
to the methods, but$nodeType->name
:The text was updated successfully, but these errors were encountered: