Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums Forums Oro Community Problem with Self Relation Contact

This topic contains 1 reply, has 2 voices, and was last updated by  Mike Kudelya 7 years ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #24547

    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)
  • Author
    Replies
  • #24548

    Mike Kudelya
    Participant

    Hi

    It is a known bug of version 1.10. Have you had a chance to migrate to version 2.0 ?

Viewing 1 replies (of 1 total)

The forum ‘Oro Community’ is closed to new topics and replies.

Back to top