You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue with importing classes, fieldcollections, and objectbricks from JSON files into Pimcore. The core of the problem lies with the objectbricks, specifically their relationship with the object classes during the import process. Currently, the import sequence requires importing objectbricks first, then classes, and finally, objectbricks again to properly establish their mutual relationships. This sequence seems counterintuitive, especially when compared to the handling of fieldcollections, which do not have a direct relationship to classes but rather are linked through classes specifying which fieldcollections they can utilize. In contrast, objectbricks specify in which classes they can be used, leading to a more complex import process.
To reproduce the issue, one can create both a class and objectbricks. The following behaviors highlight the problem:
When importing classes first, a warning is issued indicating that an unknown allowed type [XXX] was removed from the allowed types of the object brick, suggesting a missing link in the recognition of objectbricks during the class import.
WARNING [pimcore] Removed unknown allowed type [XXX] from allowed types of object brick.
Conversely, when importing objectbricks first, the container in the class responsible for assigning objectbricks (e.g., when using getBricks) does not get created. For instance, the Bricks.php class is not generated.
Actual Behavior
it is impossible to import correctly from objectbricks
Expected Behavior
I think objectbricks should have the same binding as fieldcollections
The text was updated successfully, but these errors were encountered:
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.
Pimcore version
11
Steps to reproduce
I'm encountering an issue with importing classes, fieldcollections, and objectbricks from JSON files into Pimcore. The core of the problem lies with the objectbricks, specifically their relationship with the object classes during the import process. Currently, the import sequence requires importing objectbricks first, then classes, and finally, objectbricks again to properly establish their mutual relationships. This sequence seems counterintuitive, especially when compared to the handling of fieldcollections, which do not have a direct relationship to classes but rather are linked through classes specifying which fieldcollections they can utilize. In contrast, objectbricks specify in which classes they can be used, leading to a more complex import process.
To reproduce the issue, one can create both a class and objectbricks. The following behaviors highlight the problem:
When importing classes first, a warning is issued indicating that an unknown allowed type [XXX] was removed from the allowed types of the object brick, suggesting a missing link in the recognition of objectbricks during the class import.
WARNING [pimcore] Removed unknown allowed type [XXX] from allowed types of object brick.
Conversely, when importing objectbricks first, the container in the class responsible for assigning objectbricks (e.g., when using
getBricks
) does not get created. For instance, theBricks.php
class is not generated.Actual Behavior
it is impossible to import correctly from objectbricks
Expected Behavior
I think objectbricks should have the same binding as fieldcollections
The text was updated successfully, but these errors were encountered: