Exemplo n.º 1
0
 public static function populateObjects(ResultSet $rs)
 {
     $results = array();
     $cls = sfPhotoGalleryPeer::getOMClass();
     $cls = Propel::import($cls);
     while ($rs->next()) {
         $obj = new $cls();
         $obj->hydrate($rs);
         $results[] = $obj;
     }
     return $results;
 }