PriceListEntity
extends AbstractBaseCrmModel
in package
Table of Contents
- table = "crm__price_list_entities"
- Table name, as constant, used to avoid table name duplication across the source code base.
- $activityLogName : string
- $casts : array<string|int, mixed>
- $fillable : array<int, string>
- The attributes that are mass assignable.
- $jobsEnabled : bool
- This parameter specify if jobs should be launched or not
- $table : string
- Table name
- billable() : MorphTo
- getActivitylogOptions() : LogOptions
- Specifies which model properties should be logged in the activy log
- saveWithoutJobs() : mixed
- withoutJobs() : mixed
- Executes the callback disabling the jobs launching
- newFactory() : PriceListEntityFactory
- Get the Factory Class
Constants
table
Table name, as constant, used to avoid table name duplication across the source code base.
public
mixed
table
= "crm__price_list_entities"
Tags
Properties
$activityLogName
public
static string
$activityLogName
= "crud"
$casts
protected
array<string|int, mixed>
$casts
= ['billable_multiplier' => 'float', 'billable_one_time' => 'boolean', 'billable_one_time_cost' => 'float', 'billable_per_usage' => 'boolean', 'billable_per_usage_cost' => 'float', 'billable_upon_relation' => 'boolean', 'billable_hourly' => 'boolean', 'billable_hourly_cost' => 'float', 'billable_monthly' => 'boolean', 'billable_monthly_cost' => 'float']
$fillable
The attributes that are mass assignable.
protected
array<int, string>
$fillable
= []
$jobsEnabled
This parameter specify if jobs should be launched or not
protected
bool
$jobsEnabled
= true
$table
Table name
protected
string
$table
= self::table
Methods
billable()
public
billable() : MorphTo
Return values
MorphTo —getActivitylogOptions()
Specifies which model properties should be logged in the activy log
public
getActivitylogOptions() : LogOptions
Return values
LogOptions —saveWithoutJobs()
public
saveWithoutJobs() : mixed
Return values
mixed —withoutJobs()
Executes the callback disabling the jobs launching
public
withoutJobs(callable $callback) : mixed
Parameters
- $callback : callable
Return values
mixed —newFactory()
Get the Factory Class
protected
static newFactory() : PriceListEntityFactory