OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions How to create a Entity class extends a exist Entity class?

This topic contains 2 replies, has 2 voices, and was last updated by  abel 7 years, 8 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
  • #25233

    abel
    Participant

    I was update some column to orocrm_magento_customer table by migrations. It’s worked fine!
    Now I want use some field in this table, I create a entity class in my bundle and extends Customer class (OroCRM\Bundle\MagentoBundle\Entity\Customer).
    But when I no use any annotation, this error is occurred:

    When I add annotation @ORM\Table and @ORM\Entity, that error is not occurred, but all column I create in orocrm_magento_customer table were deleted. And it’s create new table, when I add field name=”orocrm_magento_customer” to @ORM\Table then it’s occurred error: Table already exist
    Someone can help?

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

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

Back to top