entity relation save
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
namespace kernel\services;
|
||||
|
||||
use DirectoryIterator;
|
||||
use kernel\EntityRelation;
|
||||
use kernel\helpers\Debug;
|
||||
use kernel\helpers\Files;
|
||||
use kernel\helpers\Manifest;
|
||||
@ -130,6 +131,10 @@ class ModuleService
|
||||
public function deactivateModule(string $module): bool
|
||||
{
|
||||
$active_modules_info = Option::where("key", "active_modules")->first();
|
||||
|
||||
EntityRelation::removeEntityRelation($module);
|
||||
EntityRelation::removePropertyRelation($module);
|
||||
|
||||
$active_modules = json_decode($active_modules_info->value);
|
||||
if (!in_array($module, $active_modules->modules)) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user