oroinc / platform

Main OroPlatform package with core functionality.
Other
627 stars 351 forks source link

Fixing error with non existent class #1052

Open dblancaster opened 3 years ago

dblancaster commented 3 years ago

$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/CGOro_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

orocla commented 3 years ago

Thank you for your pull request.

It looks like this may be your first contribution to an Oro, Inc. open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://oroinc.com/b2b-ecommerce/contributor-license-agreement/

If you've already signed the CLA, it's possible we don't have your GitHub username or you're using a different email address. GitHub uses the email address you set in your local Git configuration to associate commits with your GitHub account. Please sign the CLA again using the correct GitHub username and email address or see this help article on setting the email on your git commits.

Once you've signed the CLA, please allow for some time for the submission to be processed.

mbessolov commented 3 years ago

Thank you for the report and the proposed fix!

(internal reference: BAP-20386)