public function getone() { $i = rand(1, 999); $testObject = TestObject::get()->first(); $content .= 'TestObject::get()->first() <br>'; return $this->customise(new ArrayData(array('Title' => "Performance: {$this->dbType} get one", 'Content' => $content)))->renderWith(array('PerformanceController', 'AppController')); }
public function TestObjects() { return TestObject::get()->sort('@RID', 'DESC'); }