public function getBindingKey()
    {
        if ($this->_bindingKey === null) {
            $this->_bindingKey = $this->isOwningSide($this->getSource()) ?
                $this->getSource()->getPrimaryKey() :
                $this->getTarget()->getPrimaryKey();
        }

        return $this->_bindingKey;
    }
public function getBindingKey()
    {
        if ($this->_bindingKey === null) {
            $this->_bindingKey = $this->isOwningSide($this->getSource()) ?
                $this->getSource()->getPrimaryKey() :
                $this->getTarget()->getPrimaryKey();
        }

        return $this->_bindingKey;
    }
public function getBindingKey ( ) { if ( $ this -> _bindingKey === null ) { $ this -> _bindingKey = $ this -> isOwningSide ( $ this -> getSource ( ) ) ? $ this -> getSource ( ) -> getPrimaryKey ( ) : $ this -> getTarget ( ) -> getPrimaryKey ( ) ; } return $ this -> _bindingKey ; }
Gets the name of the field representing the binding field with the target table.
When not manually specified the primary key of the owning side table is used.

@return string|array
Gets the name of the field representing the binding field with the target table . When not manually specified the primary key of the owning side table is used .