transfer_to_new_table
This commit is contained in:
1 parent
0955e40eac
commit
0a9600cb00
11 files changed
+45
-28
No files matched your search
@@ -84,7 +84,7 @@ class Project extends \yii\db\ActiveRecord
|
||||
*/
|
||||
public function getFieldsValues()
|
||||
{
|
||||
return $this->hasMany(FieldsValue::class, ['project_id' => 'id']);
|
||||
return $this->hasMany(FieldsValueNew::class, ['item_id' => 'id'])->where(['item_type' => FieldsValueNew::TYPE_PROJECT])->with('field');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user