Example #1
0
 public function rebuildSearchCache()
 {
     $rc = new \GO\Base\Util\ReflectionClass($this);
     $overriddenMethods = $rc->getOverriddenMethods();
     if (in_array("getCacheAttributes", $overriddenMethods)) {
         $stmt = $this->find(FindParams::newInstance()->ignoreAcl()->select('t.*'));
         $stmt->callOnEach('cacheSearchRecord', true);
     }
 }