This topic contains 3 replies, has 3 voices, and was last updated by kelton23om 8 years, 9 months ago.
- Topic
Hello,
I am trying to to add a relation between an Oro entity (B2bCustomer) and an entity of my projet.
This work well, I have used the addManyToOneRelation method of the extendsExtension in a migration script, this has create the field in the table and the foreign key, I have the getter and the setter in the Extend B2bCustomer entity, but the entity is never persisted in the table..Maybe I have forget something ? why this is never persisted ?
1234567891011121314151617$sourceTable = $schema->getTable($sourceTableName);$targetTable = $schema->getTable($targetTableName);$this->_extendExtension->addManyToOneRelation($schema,$sourceTable,'my_association_name',$targetTable,'id',array('extend' => array('without_default' => true,)));
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.