{
        if ($con === null) {
            $con = Propel::getConnection(self::DATABASE_NAME);
        }
        $objs = null;
        if (empty($pks)) {
            $objs = array();
        } else {
            $criteria = new Criteria();
            $criteria->add(ApplicationPeer::APP_UID, $pks, Criteria::IN);
            $objs = ApplicationPeer::doSelect($criteria, $con);
        }
        return $objs;
    }
}
// BaseApplicationPeer
// static code to register the map builder for this Peer with the main Propel class
if (Propel::isInit()) {
    // the MapBuilder classes register themselves with Propel during initialization
    // so we need to load them here.
    try {
        BaseApplicationPeer::getMapBuilder();
    } catch (Exception $e) {
        Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
    }
} else {
    // even if Propel is not yet initialized, the map builder class can be registered
    // now and then it will be loaded when Propel initializes.
    require_once 'classes/model/map/ApplicationMapBuilder.php';
    Propel::registerMapBuilder('classes.model.map.ApplicationMapBuilder');
}
     * @param      PropelPDO $con the connection to use
     * @throws     PropelException Any exceptions caught during processing will be
     *		 rethrown wrapped into a PropelException.
     */
    public static function retrieveByPKs($pks, PropelPDO $con = null)
    {
        if ($con === null) {
            $con = Propel::getConnection(ApplicationPeer::DATABASE_NAME, Propel::CONNECTION_READ);
        }
        $objs = null;
        if (empty($pks)) {
            $objs = array();
        } else {
            $criteria = new Criteria(ApplicationPeer::DATABASE_NAME);
            $criteria->add(ApplicationPeer::ID, $pks, Criteria::IN);
            $objs = ApplicationPeer::doSelect($criteria, $con);
        }
        return $objs;
    }
}
// BaseApplicationPeer
// This is the static code needed to register the MapBuilder for this table with the main Propel class.
//
// NOTE: This static code cannot call methods on the ApplicationPeer class, because it is not defined yet.
// If you need to use overridden methods, you can add this code to the bottom of the ApplicationPeer class:
//
// Propel::getDatabaseMap(ApplicationPeer::DATABASE_NAME)->addTableBuilder(ApplicationPeer::TABLE_NAME, ApplicationPeer::getMapBuilder());
//
// Doing so will effectively overwrite the registration below.
Propel::getDatabaseMap(BaseApplicationPeer::DATABASE_NAME)->addTableBuilder(BaseApplicationPeer::TABLE_NAME, BaseApplicationPeer::getMapBuilder());