Fixing error with non existent class #1052
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
$entityClass was updating from:
"Oro_Bundle_OrganizationBundle_Entity_BusinessUnit"
to:
"Proxies/CG/Oro_Bundle_OrganizationBundle_Entity_BusinessUnit"
Which causes
Fatal error: require(): Failed opening required '/var/www/html/demo/var/cache/prod/doctrine/orm/Proxies/___CG___Oro_Bundle_OrganizationBundle_Entity_BusinessUnit.php'
When attempting to add an attachment on a Business Unit, reproduced here:
First add attachments to business units in the entity configuration:
https://demo.orocrm.com/index.php/organization/business_unit/view/1
Once an attachment has been added to the Business Unit, this incorrect URL is generated:
https://demo.orocrm.com/index.php/attachment/create/Proxies___CG___Oro_Bundle_OrganizationBundle_Entity_BusinessUnit/1?_widgetContainer=dialog&_wid=ee7ba2d3-5903-4207-a15a-3bebce87ff1f&_widgetInit=1