OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions How to easily remove entities

This topic contains 2 replies, has 2 voices, and was last updated by  cardiac 6 years, 4 months ago.

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

  • Creator
  • #33934



    I have several entities. I want to remove the class, db tables and all associations with.

    I tried to delete the entity class, but when I clear:cache:

    The target-entity AppBundle\Entity\Costing cannot be found in ‘Oro\Bundle\AttachmentBundle\Entity\Attachment#costing_45049d3f’.

    I can’t even update the DB with doctrine, because it’s looking for the entities.

    How to do this easily? what’s the fastest way?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #33935


    Hello my friend. In Symfony world as far as I know it’s not enough removing the entity class. Since the entity could be called from a controller for example. Some entities have links to another entities as many-to-one relations for example.

    Indeed removing it could be a headache, but have you tried to remove the cache manually?
    rm -rf app/cache/*

    I would suggest you to run the website using dev mode cuz it will show you a more verbose output. Also running your application using a debug as xdebug could help to trace which parts of the code is trying to call the entity.

    Good luck!



    Thank you Rodolfo

    There is no change in error message.
    I reinstall the app because I need to be fast.

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

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No