public function isLocalPrimaryKey()
    {
        $localCols = $this->getLocalColumns();

        $localPKColumnObjs = $this->getTable()->getPrimaryKey();

        $localPKCols = array();
        foreach ($localPKColumnObjs as $lPKCol) {
            $localPKCols[] = $lPKCol->getName();
        }

        return ((count($localPKCols) === count($localCols)) && !array_diff($localPKCols, $localCols));
    }
public function isLocalPrimaryKey()
    {
        $localCols = $this->getLocalColumns();

        $localPKColumnObjs = $this->getTable()->getPrimaryKey();

        $localPKCols = array();
        foreach ($localPKColumnObjs as $lPKCol) {
            $localPKCols[] = $lPKCol->getName();
        }

        return ((count($localPKCols) === count($localCols)) && !array_diff($localPKCols, $localCols));
    }
public function isLocalPrimaryKey ( ) { $ localCols = $ this -> getLocalColumns ( ) ; $ localPKColumnObjs = $ this -> getTable ( ) -> getPrimaryKey ( ) ; $ localPKCols = array ( ) ; foreach ( $ localPKColumnObjs as $ lPKCol ) { $ localPKCols [ ] = $ lPKCol -> getName ( ) ; } return ( ( count ( $ localPKCols ) === count ( $ localCols ) ) && ! array_diff ( $ localPKCols , $ localCols ) ) ; }
Whether this foreign key is also the primary key of the local table.

@return boolean True if all local columns are at the same time a primary key
Whether this foreign key is also the primary key of the local table .