Initial import
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\models;
|
||||
|
||||
use app\models\register\Fields;
|
||||
use app\models\register\FieldsValues;
|
||||
|
||||
/**
|
||||
* Class RegisterObjectFields
|
||||
* @package app\models
|
||||
* @property $object_id
|
||||
* @property $ref_num
|
||||
* @property $field_id
|
||||
* @property $value_id
|
||||
* @property $value_text
|
||||
* @property Fields $field
|
||||
* @property FieldsValues $fieldValue
|
||||
*/
|
||||
class RegisterObjectFields extends _Base
|
||||
{
|
||||
public function getField() {
|
||||
return $this->hasOne(Fields::class, ['id' => 'field_id']);
|
||||
}
|
||||
|
||||
public function getFieldValue() {
|
||||
return $this->hasOne(FieldsValues::class, ['id' => 'value_id']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user