intermediate commit

This commit is contained in:
iIronside
2022-01-07 15:04:11 +03:00
parent e16e72dcc1
commit d31a4757ff
32 changed files with 5163 additions and 270 deletions

View File

@ -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();
}
}