watch out for your use of get in method names. Its not a protected keyword as such but it can cause odditites like this. If you have public function getTestimonials() then in the template you would do <% control Testimonials %> (dropping the get)
Thanks for the heads-up Will. But that doesn't seem to be the problem.
I changed the method name to "bollocks" as a test and the same behavior occurs.
I did add an error_reporting line to the method however and got this:
Notice: Undefined index: Testimonial in /var/www/virtual/site/sapphire/core/ClassInfo.php on line 79
Warning: ClassInfo::dataClassesFor() no parents for Testimonial in /var/www/virtual/site/sapphire/core/ClassInfo.php on line 79
Warning: Invalid argument supplied for foreach() in /var/www/virtual/site/sapphire/core/ClassInfo.php on line 80
Fatal error: DataObjects have been requested before the manifest is loaded. Please ensure you are not querying the database in _config.php. in /var/www/virtual/site/sapphire/core/model/DataObject.php on line 2254
Any ideas. I get the feeling that this has something to do with Testimonial being used by the DataObjectManager. I notice that if I remove SortableDataObject::add_sortable_class('Testimonial'); from /mysite/_config.php, the first Notice above is repeated many times over.