Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSplapiMaps()
 {
     return $this->hasMany(SplapiMap::className(), ['map_id' => 'id']);
 }
 private function getMapTable()
 {
     $ret = [];
     foreach (SplapiMap::find()->all() as $a) {
         $ret[$a->name] = $a->map_id;
     }
     return $ret;
 }