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 1 year, 5 months ago.

  • Creator
  • #22613


    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)

You must be logged in to reply to this topic.