ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums Oro Community Problem with Self Relation Contact

This topic contains 1 reply, has 2 voices, and was last updated by Mike Kudelya Mike Kudelya 11 months, 1 week ago.

  • Creator
    Topic
  • #53409

    diegonoya93
    Participant

    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?.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

ssossossosso