Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroCRM OroCRM – Programming Questions Issue Adding Call and Email Activity to Custom Entity

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

  • Creator
  • #25093


    Hi there.

    I’m having a bit of trouble adding contact activity to my custom entities, Customer and Order. Rather than do it through the entity management, I’m doing it through migrations.

    So I added the activity associations as outlined in the activity bundle readme which, once migrations have run, adds all the relevant buttons and views to the page. All good so far.

    My troubles start when I actually try to add a call (I guess email too, but without a mailing server setup I can’t test that yet). On submitting I get the following error:

    Neither the property “ac_contact_count” nor one of the methods “getAcContactCount()”, “acContactCount()”, “isAcContactCount()”, “hasAcContactCount()”, “__get()” exist and have public access in class “TrueConnectivityLtd\Bundle\OroCrmBundle\Entity\Customer”.

    Which, on investigation, is because I’m missing all manner of columns related to activity contact on my entity. I found a little information on this in this readme which alludes to an ActivityContactMigrationQuery migration that needs to run. I can see it passing over this migration when running the migration command but the columns aren’t added to my entity.

    I’m using the Magento bundle as my point of reference, but I see nothing related to the ActivityContact Bundle in there.

    Am I doing something wrong? Is there another command I need to run?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
  • #25094


    A bit more info. I also tried running the following command:

    As the ActivityContactBundle mentions it needing a schema update. However, this didn’t work. I also tried running the migrations after the schema update.



    Does anyone have any idea about this? It’s still causing issues. I can’t log calls on my custom entities.




    Probably you have created Customer entity as is not extend. Please check it. For correct work ActivityContact must to use extend entity only. We have appropriate bug and will fix it in next release.



    Yeah, you’re right. I extended BasePerson, instead of via an ExtendCustomer class. All good now.

    I’m not sure I really understand why I must extend another class, though?

    Thanks for the help.



    If anyone else comes across this post, you should do the following:

      Your model should extend an ‘extend entity’ class. Instructions here
      Run the following commands:

    They might not all be required, but this got it working for me.

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

You must be logged in to reply to this topic.

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

Yes No
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for