Exemple #1
0
 public function getNpn()
 {
     return $this->hasOne(Npn::className(), ['pending_news_id' => 'id']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getNpns()
 {
     return $this->hasMany(Npn::className(), ['news_id' => 'id']);
 }