protected function addRetrieveByPKs_SinglePK(&$script)
    {
        $table = $this->getTable();
        $script .= "
    /**
     * Retrieve multiple objects by pkey.
     *
     * @param      array \$pks List of primary keys
     * @param      PropelPDO \$con the connection to use
     * @return "               . $this->getObjectClassname() . "[]
     * @throws PropelException Any exceptions caught during processing will be
     *		 rethrown wrapped into a PropelException.
     */
    public static function " . $this->getRetrieveMethodName() . "s(\$pks, PropelPDO \$con = null)
    {
        if (\$con === null) {
            \$con = Propel::getConnection(" . $this->getPeerClassname() . "::DATABASE_NAME, Propel::CONNECTION_READ);
        }

        \$objs = null;
        if (empty(\$pks)) {
            \$objs = array();
        } else {
            \$criteria = new Criteria(" . $this->getPeerClassname() . "::DATABASE_NAME);";
        $k1 = $table->getPrimaryKey();
        $script .= "
            \$criteria->add(" . $this->getColumnConstant($k1[0]) . ", \$pks, Criteria::IN);";
        $script .= "
            \$objs = " . $this->getPeerClassname() . "::doSelect(\$criteria, \$con);
        }

        return \$objs;
    }
";
    }
protected function addRetrieveByPKs_SinglePK(&$script)
    {
        $table = $this->getTable();
        $script .= "
    /**
     * Retrieve multiple objects by pkey.
     *
     * @param      array \$pks List of primary keys
     * @param      PropelPDO \$con the connection to use
     * @return "               . $this->getObjectClassname() . "[]
     * @throws PropelException Any exceptions caught during processing will be
     *		 rethrown wrapped into a PropelException.
     */
    public static function " . $this->getRetrieveMethodName() . "s(\$pks, PropelPDO \$con = null)
    {
        if (\$con === null) {
            \$con = Propel::getConnection(" . $this->getPeerClassname() . "::DATABASE_NAME, Propel::CONNECTION_READ);
        }

        \$objs = null;
        if (empty(\$pks)) {
            \$objs = array();
        } else {
            \$criteria = new Criteria(" . $this->getPeerClassname() . "::DATABASE_NAME);";
        $k1 = $table->getPrimaryKey();
        $script .= "
            \$criteria->add(" . $this->getColumnConstant($k1[0]) . ", \$pks, Criteria::IN);";
        $script .= "
            \$objs = " . $this->getPeerClassname() . "::doSelect(\$criteria, \$con);
        }

        return \$objs;
    }
";
    }
protected function addRetrieveByPKs_SinglePK ( & $ script ) { $ table = $ this -> getTable ( ) ; $ script .= "
    /**
     * Retrieve multiple objects by pkey.
     *
     * @param      array \$pks List of primary keys
     * @param      PropelPDO \$con the connection to use
     * @return " . $ this -> getObjectClassname ( ) . "[]
     * @throws PropelException Any exceptions caught during processing will be
     *		 rethrown wrapped into a PropelException.
     */
    public static function " . $ this -> getRetrieveMethodName ( ) . "s(\$pks, PropelPDO \$con = null)
    {
        if (\$con === null) {
            \$con = Propel::getConnection(" . $ this -> getPeerClassname ( ) . "::DATABASE_NAME, Propel::CONNECTION_READ);
        }

        \$objs = null;
        if (empty(\$pks)) {
            \$objs = array();
        } else {
            \$criteria = new Criteria(" . $ this -> getPeerClassname ( ) . "::DATABASE_NAME);" ; $ k1 = $ table -> getPrimaryKey ( ) ; $ script .= "
            \$criteria->add(" . $ this -> getColumnConstant ( $ k1 [ 0 ] ) . ", \$pks, Criteria::IN);" ; $ script .= "
            \$objs = " . $ this -> getPeerClassname ( ) . "::doSelect(\$criteria, \$con);
        }

        return \$objs;
    }
" ; }
Adds the retrieveByPKs method for tables with single-column primary key.

@param string &$script The script will be modified in this method.
Adds the retrieveByPKs method for tables with single - column primary key .