This topic contains 1 reply, has 2 voices, and was last updated by Mike Kudelya 7 years ago.
- Topic
Hi, I want to create a self relation in orocrm_contact table. I did this:
public function up(Schema $schema, QueryBag $queries)
{
$table = $schema->getTable(‘orocrm_contact’);
$this->extendExtension->addManyToOneRelation(
$schema,
$table, // owning side table
‘marriage’, // owning side field name
$table, // target side table
‘first_name’, // column name is used to show related entity
[‘extend’ => [‘owner’ => ExtendScope::OWNER_CUSTOM]]
);}
And then I add the field in the view. But when I set the field with the selector, this value did’t save.
Always is empty.What I am doing wrong?.
The forum ‘Oro Community’ is closed to new topics and replies.