Skip to content

Commit

Permalink
BUGFIX: NodeType is not initialized in super rare edge cases (#59)
Browse files Browse the repository at this point in the history
* BUGFIX: NodeType is not initialized in super rare edge cases

see neos/neos-development-collection#4333

* Update Classes/Domain/NodeCreation/PropertiesAndReferences.php

---------

Co-authored-by: Sebastian Helzle <sebastian@helzle.it>
  • Loading branch information
mhsdesign and Sebobo committed Jun 19, 2023
1 parent f9a3626 commit 719fa64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Domain/NodeCreation/PropertiesAndReferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public static function createFromArrayAndTypeDeclarations(array $propertiesAndRe
$references = [];
$properties = [];
foreach ($propertiesAndReferences as $propertyName => $propertyValue) {
// TODO: remove the next line to initialise the nodeType, once https://github.com/neos/neos-development-collection/issues/4333 is fixed
$nodeType->getFullConfiguration();
$declaration = $nodeType->getPropertyType($propertyName);
if ($declaration === 'reference' || $declaration === 'references') {
$references[$propertyName] = $propertyValue;
Expand Down

0 comments on commit 719fa64

Please sign in to comment.