/** * @return \yii\db\ActiveQuery */ public function getLayout() { return $this->hasOne(LayoutRecord::className(), ['id' => 'layout_id']); }