OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM Custom Entity Issue

This topic contains 3 replies, has 2 voices, and was last updated by  Andrey Yatsenko 4 years, 12 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #38719

    emcopley2
    Participant

    Hi,

    I created a custom entity “test_entity” using UI. I checked the box under Communication & Collaboration tab Activities -> Notes

    I deleted the custom entity later on using the UI and updates Schema. But the Entity still exists in the DB under oro_entity_config table.

    This was creating issues since when I try to update cache using php bin/console cache:clear with below error

    Things I have tried so far:

    – Deleting the custom entity from DB in oro_entity_config table but that didnt help

    – Tried php bin/console oro:entity-config:update –force hoping that Meatdata could be out of sync with real DB but that didnt help

    – Created the entity again with the same name using the UI and this time didnt check the box for Notes. I was hoping that would update the dependencies, but that didnt help.

    At this point I am unable to clear cache because of this. This is error I am getting now:

    I’d appreciate any help with this!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #38720

    emcopley2
    Participant

    Never mind I just added a another custom entity and updated Schema and this seemed to have solved the issue.

    Would be great to know if you have come across this in the past and why it happened but its solved for now.

    Thanks!

    #38721

    emcopley2
    Participant

    After clearing the cache I am getting HTTP: 500 error and cant access the log in page. Any thoughts?

    #38729

    Andrey Yatsenko
    Moderator

    Looks like you have corrupted src/AppKernel.php file or some other related file, please compare it with the default one. $bundles argument must be an array, but it is a string.
    https://github.com/oroinc/crm-application/blob/master/src/AppKernel.php

    Also, you can reinstall vendors to make sure there are no manual changes in the vendor folder, as it must not be edited manually anyway.

Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroCRM’ is closed to new topics and replies.

Back to top