41 lines
843 B
PHP
41 lines
843 B
PHP
<?php
|
|
|
|
namespace FluentForm\App\Models;
|
|
|
|
class EntryDetails extends Model
|
|
{
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'fluentform_entry_details';
|
|
|
|
/**
|
|
* Indicates if the model should be timestamped.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* A formMeta is owned by a form.
|
|
*
|
|
* @return \FluentForm\Framework\Database\Orm\Relations\BelongsTo
|
|
*/
|
|
public function form()
|
|
{
|
|
return $this->belongsTo(Form::class, 'form_id', 'id');
|
|
}
|
|
|
|
/**
|
|
* A submission detail is owned by a submission.
|
|
*
|
|
* @return \FluentForm\Framework\Database\Orm\Relations\BelongsTo
|
|
*/
|
|
public function submission()
|
|
{
|
|
return $this->belongsTo(Submission::class, 'submission_id', 'id' );
|
|
}
|
|
}
|