public function getAutoIncrementPrimaryKey()
    {
        if (IdMethod::NO_ID_METHOD !== $this->getIdMethod()) {
            foreach ($this->getPrimaryKey() as $pk) {
                if ($pk->isAutoIncrement()) {
                    return $pk;
                }
            }
        }
    }
public function getAutoIncrementPrimaryKey()
    {
        if (IdMethod::NO_ID_METHOD !== $this->getIdMethod()) {
            foreach ($this->getPrimaryKey() as $pk) {
                if ($pk->isAutoIncrement()) {
                    return $pk;
                }
            }
        }
    }
public function getAutoIncrementPrimaryKey ( ) { if ( IdMethod :: NO_ID_METHOD !== $ this -> getIdMethod ( ) ) { foreach ( $ this -> getPrimaryKey ( ) as $ pk ) { if ( $ pk -> isAutoIncrement ( ) ) { return $ pk ; } } } }
Returns the auto incremented primary key.

@return Column
Returns the auto incremented primary key .