public static function retrieveByPKs($pks, PropelPDO $con = null) { if ($con === null) { $con = Propel::getConnection(TipodocumentoPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(TipodocumentoPeer::DATABASE_NAME); $criteria->add(TipodocumentoPeer::ID, $pks, Criteria::IN); $objs = TipodocumentoPeer::doSelect($criteria, $con); } return $objs; }