/** * @return \yii\db\ActiveQuery */ public function getMapUnits() { return $this->hasMany(MapUnit::className(), ['unitcode' => 'unitcode']); }