ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by  cardiac 1 year, 9 months ago.

  • Creator
    Topic
  • #12963

    cardiac
    Participant

    Hi,

    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:

    [Doctrine\ORM\Mapping\MappingException]
    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
    Replies
  • #12965

    Rodolfo
    Participant

    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!

    #13209

    cardiac
    Participant

    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)

You must be logged in to reply to this topic.