This topic contains 4 replies, has 2 voices, and was last updated by zhex900 6 years, 10 months ago.
- Topic
Hi,
I have added an extra field in CalendarEvents via migration script. I can create and update the new field in CalendarEvents. However when I edit an event from http://localhost/app_dev.php/calendar/default. I get this error
You cannot change the data of a submitted form.
Another problem I have is that, after I refresh this page http://localhost/app_dev.php/calendar/default. In the edit view, the value of the extended field is not displayed. I need to enter another value.123456789101112131415161718192021222324252627public function up(Schema $schema, QueryBag $queries){$this->extendExtension->addManyToOneRelation($schema,'oro_calendar_event', // owning side table'oro_eventname', // owning side field name'orocrm_eventname', // inverse side table'name', // column name is used to show related entity['entity' => ['label' => 'oro.calendar.calendarevent.oro_eventname.label'],'extend' => ['owner' => ExtendScope::OWNER_CUSTOM]]);$this->extendExtension->addManyToOneInverseRelation($schema,'oro_calendar_event', // owning side table'oro_eventname', // owning side field name'orocrm_eventname', // inverse side table'events', // inverse side field name['title'], // column names are used to show a title of owning side entity['title'], // column names are used to show detailed info about owning side entity['title'], // Column names are used to show owning side entity in a grid['extend' => ['owner' => ExtendScope::OWNER_CUSTOM]]);}
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.