fix: Remove type declarations from model properties and fix primaryKey bug

- Remove PHP type declarations from model property overrides to prevent fatal errors (CI4 Model declares without types)
- Fix wrong $primaryKey in Tax_jurisdiction (was 'cashup_id', now 'jurisdiction_id')
- Fix wrong $table in Customer_rewards (was 'customer_packages', now 'customers_packets')

Addresses CodeRabbit review comments
This commit is contained in:
Ollama
2026-04-16 19:37:52 +00:00
parent e17e85bc4c
commit 0a0a1e9aae
28 changed files with 136 additions and 136 deletions

View File

@@ -6,11 +6,11 @@ use CodeIgniter\Database\ResultInterface;
class Module extends BaseModel
{
protected string $table = 'modules';
protected string $primaryKey = 'module_id';
protected bool $useAutoIncrement = false;
protected bool $useSoftDeletes = false;
protected array $allowedFields = [
protected $table = 'modules';
protected $primaryKey = 'module_id';
protected $useAutoIncrement = false;
protected $useSoftDeletes = false;
protected $allowedFields = [
'name_lang_key',
'desc_lang_key',
'sort'