Merge branch 'feat/wiki' into 'main'

Feat/wiki

See merge request jjimenez/safekat!582
This commit is contained in:
Alvaro
2025-03-02 12:44:46 +00:00
10 changed files with 114 additions and 43 deletions

View File

@ -17,13 +17,17 @@ class WikiSectionEntity extends Entity
"parent_id" => null
];
protected $casts = [
"name" => "string",
"slug" => "string",
"role" => "string",
"icon" => "string",
"order" => "int",
"parent_id" => "int"
];
public function getName() : object
{
return json_decode($this->attributes['name']);
}
public function withPage(): self
{

View File

@ -1,8 +1,6 @@
<?php
namespace App\Entities\Wiki;
use App\Models\Wiki\WikiContentModel;
use App\Models\Wiki\WikiPageModel;
use App\Models\Wiki\WikiSectionModel;
use CodeIgniter\Entity\Entity;