Skip to content
Snippets Groups Projects
Commit 144fb5a0 authored by Tim Otten's avatar Tim Otten
Browse files

Merge pull request #2374 from totten/4.4-entitytype

--HR-224 Reinitialize entity cache during installation
parents 3cd9ff05 95a90cba
Branches
Tags
No related merge requests found
......@@ -507,7 +507,7 @@ class CRM_Core_Invoke {
) {
CRM_Core_DAO::triggerRebuild();
}
CRM_Core_DAO_AllCoreTables::reinitializeCache(TRUE);
CRM_Core_ManagedEntities::singleton(TRUE)->reconcile();
}
}
......
......@@ -39,9 +39,9 @@ class CRM_Core_DAO_AllCoreTables {ldelim}
static private $tables = null;
static private $daoToClass = null;
static private function init() {ldelim}
static private function init($fresh = FALSE) {ldelim}
static $init = FALSE;
if ($init) return;
if ($init && !$fresh) return;
$entityTypes = array(
{foreach from=$tables key=tableName item=table}
......@@ -115,5 +115,8 @@ class CRM_Core_DAO_AllCoreTables {ldelim}
return array_search(self::getCanonicalClassName($className), self::tables());
{rdelim}
static public function reinitializeCache($fresh = FALSE) {ldelim}
self::init($fresh);
{rdelim}
{rdelim}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment