This topic contains 4 replies, has 2 voices, and was last updated by Takushi 3 years, 5 months ago.
-
Topic
-
Hello,
I tried to add the field head_office into the entity Organization with this migration:
123456789101112131415161718192021222324252627282930313233343536namespace AppOro\Bundle\OrganizationBundle\Migrations\Schema\v1_0;class AppOroOrganizationBundle implements Migration, ExtendExtensionAwareInterface{/* @var $extendExtension ExtendExtension */protected $extendExtension;/*** @inheritdoc*/public function setExtendExtension(ExtendExtension $extendExtension){$this->extendExtension = $extendExtension;}/*** @inheritdoc* @throws \Doctrine\DBAL\Schema\SchemaException*/public function up(Schema $schema, QueryBag $queries){$table = $schema->getTable('oro_organization');$this->extendExtension->addManyToOneRelation($schema,$table, // owning side table'head_office', // owning side field name'oro_address', // target side table'label', // column name is used to show related entity['extend' => ['owner' => ExtendScope::OWNER_CUSTOM,'cascade' => ["persist", "remove"]]]);}}When i perform the command php app/console cache:clear -vvv, i get this error:
Property Oro\Bundle\OrganizationBundle\Entity\Organization::$head_office does not existAnd the file in the cache doesn’t implement new value:
12345678910111213141516171819202122<?phpnamespace Extend\Entity;abstract class EX_OroOrganizationBundle_Organization implements \Oro\Bundle\EntityExtendBundle\Entity\ExtendEntityInterface{protected $serialized_data;public function setSerializedData($value){$this->serialized_data = $value; return $this;}public function getSerializedData(){return $this->serialized_data;}public function __construct(){}}I have another entity that extends Oro\Bundle\OrganizationBundle\Model\ExtendOrganization and having some relation fields.
I am on Oro V2.6.
Thank.
-
This topic was modified 3 years, 5 months ago by
Takushi. Reason: Oro version
-
This topic was modified 3 years, 5 months ago by
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.