changes
This commit is contained in:
@@ -140,6 +140,10 @@ public function fieldJobs(): HasMany
|
||||
return $this->hasMany(\App\Models\FieldJob::class);
|
||||
}
|
||||
|
||||
public function lastFieldJobs(): HasOne {
|
||||
return $this->hasOne(\App\Models\FieldJob::class)->latestOfMany();
|
||||
}
|
||||
|
||||
public function latestObject(): HasOne
|
||||
{
|
||||
return $this->hasOne(\App\Models\CaseObject::class)
|
||||
|
||||
@@ -17,6 +17,11 @@ class ImportEntity extends Model
|
||||
'meta',
|
||||
'rules',
|
||||
'ui',
|
||||
'handler_class',
|
||||
'validation_rules',
|
||||
'processing_options',
|
||||
'is_active',
|
||||
'priority',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
@@ -27,5 +32,9 @@ class ImportEntity extends Model
|
||||
'meta' => 'boolean',
|
||||
'rules' => 'array',
|
||||
'ui' => 'array',
|
||||
'validation_rules' => 'array',
|
||||
'processing_options' => 'array',
|
||||
'is_active' => 'boolean',
|
||||
'priority' => 'integer',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user