/** * Method to select one object from the DB. * * @param Criteria $criteria object used to create the SELECT statement. * @param Connection $con * @return AppAssignSelfServiceValue * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function doSelectOne(Criteria $criteria, $con = null) { $critcopy = clone $criteria; $critcopy->setLimit(1); $objects = AppAssignSelfServiceValuePeer::doSelect($critcopy, $con); if ($objects) { return $objects[0]; } return null; }