ssossossosso

Forums

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

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

  • Creator
    Topic
  • #32698

    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
  • #32968
    Mike Kudelya
    Mike Kudelya
    Oro Core

    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)

You must be logged in to reply to this topic.