intermediate commit
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
namespace common\models;
|
||||
|
||||
use Yii;
|
||||
use yii\db\ActiveQuery;
|
||||
|
||||
/**
|
||||
* This is the model class for table "document_field_value".
|
||||
@ -54,7 +55,7 @@ class DocumentFieldValue extends \yii\db\ActiveRecord
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \yii\db\ActiveQuery
|
||||
* @return ActiveQuery
|
||||
*/
|
||||
public function getDocument()
|
||||
{
|
||||
@ -62,10 +63,17 @@ class DocumentFieldValue extends \yii\db\ActiveRecord
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \yii\db\ActiveQuery
|
||||
* @return ActiveQuery
|
||||
*/
|
||||
public function getField()
|
||||
public function getField(): ActiveQuery
|
||||
{
|
||||
return $this->hasOne(DocumentField::className(), ['id' => 'field_id']);
|
||||
}
|
||||
|
||||
public function getFieldsArray()
|
||||
{
|
||||
return '44';
|
||||
// self::find()->select(['value', 'document_field.title', 'document_field.template'])
|
||||
// ->joinWith('field')->asArray()->all();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user