Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSeries()
 {
     return $this->hasMany(Series::className(), ['id' => 'series_id'])->viaTable('series_has_post', ['post_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSeries()
 {
     return $this->hasOne(Series::className(), ['id' => 'series_id']);
 }