/** * Check if it's necessary to run a database check for this model. * If it has an ACL, Files or an overrided method it returns true. * @return boolean */ public function checkDatabaseSupported() { if ($this->aclField()) { return true; } if ($this->hasFiles() && GO::modules()->isInstalled('files')) { return true; } $class = new \GO\Base\Util\ReflectionClass($this->className()); return $class->methodIsOverridden('checkDatabase'); }