library/Garp/Spawn/Model/Binding/Factory.php
protected function _getSecondRule() {
        $relation = $this->getRelation();
        $firstRule = $relation->name;
        $hasCustomRelName = $this->_hasCustomRelName();
        $modelIds = $this->_getModelIdsAlphabetically();

        if ($hasCustomRelName) {
            return $modelIds[0];
        }

        return $modelIds[0] !== $firstRule
            ? $modelIds[0]
            : $modelIds[1]
        ;
    }
protected function _getSecondRule() {
        $relation = $this->getRelation();
        $firstRule = $relation->name;
        $hasCustomRelName = $this->_hasCustomRelName();
        $modelIds = $this->_getModelIdsAlphabetically();

        if ($hasCustomRelName) {
            return $modelIds[0];
        }

        return $modelIds[0] !== $firstRule
            ? $modelIds[0]
            : $modelIds[1]
        ;
    }
protected function _getSecondRule ( ) { $ relation = $ this -> getRelation ( ) ; $ firstRule = $ relation -> name ; $ hasCustomRelName = $ this -> _hasCustomRelName ( ) ; $ modelIds = $ this -> _getModelIdsAlphabetically ( ) ; if ( $ hasCustomRelName ) { return $ modelIds [ 0 ] ; } return $ modelIds [ 0 ] !== $ firstRule ? $ modelIds [ 0 ] : $ modelIds [ 1 ] ; }
Displays second HABTM rule. The first rule is always the name of the direct relation to the end model.
Displays second HABTM rule . The first rule is always the name of the direct relation to the end model .