/** * @param string $hostname * @param PropelPDO $con * @return ApiServer */ public static function retrieveByHostname($hostname, PropelPDO $con = null) { $criteria = new Criteria(ApiServerPeer::DATABASE_NAME); $criteria->add(ApiServerPeer::HOSTNAME, $hostname); return ApiServerPeer::doSelectOne($criteria, $con); }