I’m trying to create a custom activity entity in code but I’m having some trouble. I’ve followed the instructions on this page and created my entity, which extends an ExtendEntity, which in turn implements the ActivityInterface. I’ve also set up a migration to create the table.
I then run the following commands to run the migrations and update the schema/cache:Shell1234php app/console oro:entity-extend:update-configphp app/console oro:entity-extend:update-schemaphp app/console oro:entity-extend:cache:clearphp app/console oro:entity-config:update
But looking in the oro_entity_config table, I can’t see my new entity. I’ve added several custom entities and it has always worked doing things this way.
I then tried to add the associations to my own custom entities with ActivityExtension migration tool regardless. Obviously it failed to run and had the following error:PHP1$className must not be empty
Which I guess is because the entity isn’t present in the database. Am I missing something here? I’m a little worried even if I get this working, that it might have trouble ensuring the migrations run at the correct time when deploying the bundle.
Thanks for your help.
You must be logged in to reply to this topic.