Open mhsdesign opened 8 months ago
Since this issue is already part of the Flow Proxy Refactoring board, I just wanted to mention, that this causes an Exception with current Neos 9 implementation during node creation.
composer update
rm -rf Data/Temporary
./flow flow:cache:flush --force
# just in case./flow flow:package:rescan
./flow doctrine:migrate
./flow cr:setup
./flow site:create neosdemo Neos.Demo Neos.Demo:Document.Homepage
./flow user:create --roles Neos.Neos:Administrator --username user --first-name us --last-name er
neosdemo
(=Home) > Teaser area
create a new Text Element inside
A red alert is shown Unknown named parameter $elementValues - Check the logs for details
From System_Development.log:
24-04-26 11:49:42 53 CRITICAL Exception in line 167 of /application/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Neos_Ui_Domain_Model_Changes_AbstractCreate.php: Unknown named parameter $elementValues - See also: 202404261149424c0ba0.txt
I'm using php 8.2.4 in a docker container, Mariadb 11.0.2 and current up to date Neos 9 packages:
neos/neos-development-collection 9.0.x-dev dab3d0b Neos packages in a joined repository for pull requests.
neos/neos-ui 9.0.x-dev 2485e9e Neos CMS UI written in React
neos/neos-ui-compiled 9.0.x-dev e016abd
neos/flow-development-collection 9.0.x-dev 00fa8ff Flow packages in a joined repository for pull requests.
The reason, as correctly identified by @mhsdesign here, is, that Flow creates a proxy class for NodeCreationElements. The proxy class does not have named constructor arguments. Thus NodePropertyConversionService::convertNodeCreationElements fails with the shown php fatal.
Slightly unrelated, there is also a proxy class for NodeCreationCommands. Not sure if this information is of any value.
Given the following code, i would expect no proxy class to be generated for either
Dto
orOtherDto
For
Dto
this is true, but there will be a proxy class forOtherDto
, which causes problems like not being able to use named arguments: https://github.com/neos/flow-development-collection/issues/3076