Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Previously, an exception to this model applied to Org Identities, however this capability is no longer available. See Organizational Identity Pooling.

Unfreezing Foreign Keys

Registry v3.3.3 through v4.x

As of Registry v3.3.3, foreign keys are by default frozen when a record is initially saved. That is, if a record has a foreign key to co_person_id, once the record is created it can't be reassigned to a new CO Person. Freezing foreign keys prevents records from being moved across COs, in particular via the REST API (since the UI typically doesn't expose this capability).

...

Code Block
languagephp
titleExample
public $belongsTo = array(
  'MembershipCoGroup' => array(
    'className' => 'CoGroup',
    'foreignKey' => 'membership_co_group_id'
  )
);

public $validate = array(
  'membership_co_group_id' => array(
    'content' => array(
      'rule' => 'numeric',
      'unfreeze' => 'CO'
    )
  )
);

Registry v5.0.0 and Later

As of Registry v5, foreign key freezing is based on the primary link for the table.