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