library/Garp/Content/Manager.php
public function unrelate(array $options) {
        $this->_checkAcl('relate');

        extract($options);
        if (!isset($primaryKey) || !isset($model) || !isset($foreignKeys)) {
            throw new Garp_Content_Exception(
                'Not enough options. "primaryKey", "model" and "foreignKeys" are required.'
            );
        }
        $model         = Garp_Content_Api::modelAliasToClass($model);
        $primaryKey    = (array)$primaryKey;
        $foreignKeys   = (array)$foreignKeys;
        $rule          = isset($rule) ? $rule : null;
        $rule2         = isset($rule2) ? $rule2 : null;
        $bindingModel  = isset($bindingModel) ? 'Model_' . $bindingModel : null;
        $bidirectional = isset($bidirectional) ? $bidirectional : null;

        Garp_Content_Relation_Manager::unrelate(
            array(
                'modelA'        => $this->_model,
                'modelB'        => $model,
                'keyA'          => $primaryKey,
                'keyB'          => $foreignKeys,
                'rule'          => $rule,
                'ruleB'         => $rule2,
                'bindingModel'  => $bindingModel,
                'bidirectional' => $bidirectional,
            )
        );
    }
public function unrelate(array $options) {
        $this->_checkAcl('relate');

        extract($options);
        if (!isset($primaryKey) || !isset($model) || !isset($foreignKeys)) {
            throw new Garp_Content_Exception(
                'Not enough options. "primaryKey", "model" and "foreignKeys" are required.'
            );
        }
        $model         = Garp_Content_Api::modelAliasToClass($model);
        $primaryKey    = (array)$primaryKey;
        $foreignKeys   = (array)$foreignKeys;
        $rule          = isset($rule) ? $rule : null;
        $rule2         = isset($rule2) ? $rule2 : null;
        $bindingModel  = isset($bindingModel) ? 'Model_' . $bindingModel : null;
        $bidirectional = isset($bidirectional) ? $bidirectional : null;

        Garp_Content_Relation_Manager::unrelate(
            array(
                'modelA'        => $this->_model,
                'modelB'        => $model,
                'keyA'          => $primaryKey,
                'keyB'          => $foreignKeys,
                'rule'          => $rule,
                'ruleB'         => $rule2,
                'bindingModel'  => $bindingModel,
                'bidirectional' => $bidirectional,
            )
        );
    }
public function unrelate ( array $ options ) { $ this -> _checkAcl ( 'relate' ) ; extract ( $ options ) ; if ( ! isset ( $ primaryKey ) || ! isset ( $ model ) || ! isset ( $ foreignKeys ) ) { throw new Garp_Content_Exception ( 'Not enough options. "primaryKey", "model" and "foreignKeys" are required.' ) ; } $ model = Garp_Content_Api :: modelAliasToClass ( $ model ) ; $ primaryKey = ( array ) $ primaryKey ; $ foreignKeys = ( array ) $ foreignKeys ; $ rule = isset ( $ rule ) ? $ rule : null ; $ rule2 = isset ( $ rule2 ) ? $ rule2 : null ; $ bindingModel = isset ( $ bindingModel ) ? 'Model_' . $ bindingModel : null ; $ bidirectional = isset ( $ bidirectional ) ? $ bidirectional : null ; Garp_Content_Relation_Manager :: unrelate ( array ( 'modelA' => $ this -> _model , 'modelB' => $ model , 'keyA' => $ primaryKey , 'keyB' => $ foreignKeys , 'rule' => $ rule , 'ruleB' => $ rule2 , 'bindingModel' => $ bindingModel , 'bidirectional' => $ bidirectional , ) ) ; }
Unrelate entities from each other

@param array $options
@return bool
Unrelate entities from each other