ssossossosso

Forums

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

This topic contains 1 reply, has 2 voices, and was last updated by  Alexander 1 year, 10 months ago.

  • Creator
    Topic
  • #14850
    golriz.nourani
    golriz.nourani
    Participant

    Hi
    I had some migration on tables but I repent of it so
    -delete migration file
    -delete migration version from oro_migrations table
    -delete [customeName] migration’s filed from oro_entity_config_field table
    -delete [customeName]filed from main [Account] table

    but i have error:
    [Oro\Bundle\EntityConfigBundle\Exception\RuntimeException]
    A model for “OroCRM\Bundle\AccountBundle\Entity\Account::customeName” was not found

    last week i work of version 1.7.5 and there was not any error but when i upgrade to version 1.8.2 i have error

    is there another place in database that have config of migration?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #14893

    Alexander
    Oro Core

    Hi, @golriz-nourani.

    Please check ‘oro_entity_config’ table, actually the record related to the Account.
    Seems you’ve forgot to delete references to your [customerName] field. So, it still present in proxy classes.
    Also please check ‘oro_entity_config_index_value’ table.

    Actually, the right way was to create migration for deletion of your field.

    Also you can use the cli commands for debug purposes, hope it will help you to investigate the problem:
    – ‘./app/console oro:entity-config:debug’
    – ‘./app/console oro:entity-config:debug -l’ -> will give you the list of all entities
    – ‘./app/console oro:entity-config:debug “OroCRM\Bundle\AccountBundle\Entity\Account” -l’ -> will give you the list of all fields for ‘Account’ entity
    – ‘./app/console oro:entity-config:debug “OroCRM\Bundle\AccountBundle\Entity\Account” fieldName’ -> will give you the configuration of ‘fieldName’ for ‘Account’ entity.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.