Exemplo n.º 1
0
 public function geocodable()
 {
     $con = Propel::getConnection('eaamap');
     $sql = "Select groups.* from groups where isnull( geocode_attempted_at ) or updated_at > geocode_attempted_at";
     $stmt = $con->prepare($sql);
     $stmt->execute();
     return GroupPeer::populateObjects($stmt);
 }
Exemplo n.º 2
0
 /**
  * Method to do selects.
  *
  * @param      Criteria $criteria The Criteria object used to build the SELECT statement.
  * @param      PropelPDO $con
  * @return     array Array of selected Objects
  * @throws     PropelException Any exceptions caught during processing will be
  *		 rethrown wrapped into a PropelException.
  */
 public static function doSelect(Criteria $criteria, PropelPDO $con = null)
 {
     return GroupPeer::populateObjects(GroupPeer::doSelectStmt($criteria, $con));
 }