Importer update add support for meta data and multiple inserts for some entities like addresses and phones, updated other things
This commit is contained in:
@@ -27,6 +27,7 @@ class Contract extends Model
|
||||
'client_case_id',
|
||||
'type_id',
|
||||
'description',
|
||||
'meta',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
@@ -35,6 +36,13 @@ class Contract extends Model
|
||||
'type_id',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'meta' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
public function type(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(\App\Models\ContractType::class, 'type_id');
|
||||
|
||||
@@ -13,6 +13,8 @@ class ImportEntity extends Model
|
||||
'fields',
|
||||
'field_aliases',
|
||||
'aliases',
|
||||
'supports_multiple',
|
||||
'meta',
|
||||
'rules',
|
||||
'ui',
|
||||
];
|
||||
@@ -21,6 +23,8 @@ class ImportEntity extends Model
|
||||
'fields' => 'array',
|
||||
'field_aliases' => 'array',
|
||||
'aliases' => 'array',
|
||||
'supports_multiple' => 'boolean',
|
||||
'meta' => 'boolean',
|
||||
'rules' => 'array',
|
||||
'ui' => 'array',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user