mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-06-02 04:40:17 -04:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user