I'm upgrading a site from 2.4.5 to 3.0.5 and I've managed to resolve most of the issues I have come up against, but this one has got me stumped.
I have a custom module - a "song library" - that is made up of several dataObjects: song, theme, subtheme and publisher. I use a custom searchcontext to provide search facilities on the front end of the site with paginated results. This was working fine in 2.4.5. I've done some minor tweaks (getting changing methods to populate dropdown menu's etc) but otherwise the actual search functions are basically exactly what's here: http://doc.silverstripe.org/framework/en/reference/searchcontext
I can get the search function to return un-paginated results, but when I try and use paginated results I get the following error:
the method 'setpagesize' does not exist on 'PaginatedList'
I'm a bit stuck because my functions are so close to the examples I don't get it. Is it possibly something in the template? One of the only differences is I use: renderWith(array('SongSearch_results', 'Page'); instead of renderWith('SongSearch_results'); but I've tried changing that line and it seems to make no difference.