public static function doSelectStmt(Criteria $criteria, PropelPDO $con = null) { $c1 = $criteria->getNewCriterion(UsuarioPeer::FECHA_BORRADO, null, Criteria::ISNULL); $c2 = $criteria->getNewCriterion(UsuarioPeer::FECHA_BORRADO, false, Criteria::EQUAL); $c1->addOr($c2); $criteria->addAnd($c1); return parent::doSelectStmt($criteria, $con); }
* Returns an array of arrays that contain columns in each unique index. * * @return array */ public static function getUniqueColumnNames() { return array(array('usuario')); } // symfony_behaviors behavior /** * Returns the name of the hook to call from inside the supplied method. * * @param string $method The calling method * * @return string A hook name for {@link sfMixer} * * @throws LogicException If the method name is not recognized */ private static function getMixerPreSelectHook($method) { if (preg_match('/^do(Select|Count)(Join(All(Except)?)?|Stmt)?/', $method, $match)) { return sprintf('BaseUsuarioPeer:%s:%1$s', 'Count' == $match[1] ? 'doCount' : $match[0]); } throw new LogicException(sprintf('Unrecognized function "%s"', $method)); } } // BaseUsuarioPeer // This is the static code needed to register the TableMap for this table with the main Propel class. // BaseUsuarioPeer::buildTableMap();
public static function clearInstancePool() { self::$instances = array(); }