Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/fluentform/app/Models/Scheduler.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 +
3 + namespace FluentForm\App\Models;
4 +
5 + class Scheduler extends Model
6 + {
7 + /**
8 + * The table associated with the model.
9 + *
10 + * @var string
11 + */
12 + protected $table = 'ff_scheduled_actions';
13 +
14 + /**
15 + * A formMeta is owned by a form.
16 + *
17 + * @return \FluentForm\Framework\Database\Orm\Relations\BelongsTo
18 + */
19 + public function form()
20 + {
21 + return $this->belongsTo(Form::class, 'form_id', 'id');
22 + }
23 +
24 + /**
25 + * A schedule action is owned by a submission.
26 + *
27 + * @return \FluentForm\Framework\Database\Orm\Relations\BelongsTo
28 + */
29 + public function submission()
30 + {
31 + return $this->belongsTo(Submission::class, 'origin_id', 'id');
32 + }
33 + }
34 +