/** * Method to do selects. * * @param Criteria $criteria The Criteria object used to build the SELECT statement. * @param Connection $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, $con = null) { return NotificationDevicePeer::populateObjects(NotificationDevicePeer::doSelectRS($criteria, $con)); }
public function getAll () { $oCriteria = new Criteria( 'workflow' ); $oCriteria->addSelectColumn( NotificationDevicePeer::DEV_UID ); $oCriteria->addSelectColumn( NotificationDevicePeer::USR_UID ); $oCriteria->addSelectColumn( NotificationDevicePeer::DEV_TYPE ); $oCriteria->addSelectColumn( NotificationDevicePeer::DEV_REG_ID ); $oCriteria->addSelectColumn( NotificationDevicePeer::DEV_CREATE ); //execute the query $oDataset = NotificationDevicePeer::doSelectRS( $oCriteria ); $oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC ); $aRows = array (); while ($oDataset->next()) { $aRows[] = $oDataset->getRow(); } return $aRows; }