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
TASK: Modernize Doctrine array types #2900
Conversation
c01882f
to
44a7831
Compare
44a7831
to
3978932
Compare
3978932
to
1336747
Compare
That psalm error is a) not reproducible locally and b) nonsense. And because of a) I cannot even do a baseline update to "fix" it. 🤷♂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good by reading so far
Neos.Flow/Classes/Persistence/Doctrine/DataTypes/JsonArrayType.php
Outdated
Show resolved
Hide resolved
Neos.Flow/Classes/Persistence/Doctrine/DataTypes/JsonArrayType.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Marc Henry Schultz <85400359+mhsdesign@users.noreply.github.com>
Co-authored-by: Marc Henry Schultz <85400359+mhsdesign@users.noreply.github.com>
Merging after tests are done. |
* @var PersistenceManagerInterface | ||
*/ | ||
protected $persistenceManager; | ||
private const FLOW_JSON_ARRAY = 'flow_json_array'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of private results in a regression:
➜ neos-manufacture-highest git:(8.3) ✗ ./flow site:import Neos.Demo
This command can use a lot of memory when importing sites with many resources.
If the import is successful, you will see a message saying "Import of site ... finished".
If you do not see this message, the import failed, most likely due to insufficient memory.
Increase the memory_limit configuration parameter of your php CLI to attempt to fix this.
Starting import...
---
Cannot access private constant Neos\Flow\Persistence\Doctrine\DataTypes\JsonArrayType::FLOW_JSON_ARRAY
Type: Error
File: Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_ContentRepos
itory_Domain_Service_ImportExport_NodeImportService.php
Line: 642
Since
i think it can be tracked down to our nullable
fetching the entities from the repository doesnt work anymore with this change. Has anyone else experienced this problem or are we using the api wrong? ^^ |
Is "our nullable Anyway, if the implementation of the type did return |
regression from #2900 see #2900 (comment)
No its in a clients code base ;) So i created a pr and will test the patch in the project now #3135 |
regression from #2900 see neos/flow-development-collection#2900 (comment)
Update the code of
JsonArrayType
andObjectArray
to follow modern PHP practices.Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions