This topic contains 2 replies, has 2 voices, and was last updated by zhex900 7 years ago.
- Topic
Hi,
I have added a new relationship to calendar event. I don’t know how to set the label for form.choose.
Here is what I have done.
calendar event migration file12345678910111213141516171819202122232425262728293031323334353637383940<?php/*** Created by PhpStorm.* User: jake* Date: 27/1/17* Time: 1:07 PM*/namespace CampusCRM\CampusCalendarBundle\Migrations\Schema\v2_1;use Doctrine\DBAL\Schema\Schema;use Oro\Bundle\MigrationBundle\Migration\Migration;use Oro\Bundle\MigrationBundle\Migration\QueryBag;use Oro\Bundle\EntityExtendBundle\EntityConfig\ExtendScope;use Oro\Bundle\EntityBundle\EntityConfig\DatagridScope;use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtensionAwareInterface;use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtension;class ExtendCalendarEntity implements Migration, ExtendExtensionAwareInterface{protected $extendExtension;public function setExtendExtension(ExtendExtension $extendExtension){$this->extendExtension = $extendExtension;}public 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['extend' => ['owner' => ExtendScope::OWNER_CUSTOM]]);}}translation file
12345oro.event_name.form.choose: 'Choose an event name...'oro:calendar:calendarevent:oro_eventname.label: Event Name
The forum ‘OroPlatform’ is closed to new topics and replies.