public function isAtLeastOneLocalPrimaryKey()
    {
        $localCols = $this->getLocalColumnObjects();

        foreach ($localCols as $localCol) {
            if ($this->getTable()->getColumn($localCol->getName())->isPrimaryKey()) {
                return true;
            }
        }

        return false;
    }
public function isAtLeastOneLocalPrimaryKey()
    {
        $localCols = $this->getLocalColumnObjects();

        foreach ($localCols as $localCol) {
            if ($this->getTable()->getColumn($localCol->getName())->isPrimaryKey()) {
                return true;
            }
        }

        return false;
    }
public function isAtLeastOneLocalPrimaryKey ( ) { $ localCols = $ this -> getLocalColumnObjects ( ) ; foreach ( $ localCols as $ localCol ) { if ( $ this -> getTable ( ) -> getColumn ( $ localCol -> getName ( ) ) -> isPrimaryKey ( ) ) { return true ; } } return false ; }
Whether at least one local column is also a primary key.

@return boolean True if there is at least one column that is a primary key
Whether at least one local column is also a primary key .