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