예제 #1
0
파일: News.php 프로젝트: iryska/nagginua
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPendingNews()
 {
     return $this->hasMany(PendingNews::className(), ['id' => 'pending_news_id'])->viaTable(Npn::tableName(), ['news_id' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPendingNews()
 {
     return $this->hasMany(PendingNews::className(), ['pq_id' => 'id']);
 }
예제 #3
0
파일: Npn.php 프로젝트: iryska/nagginua
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPendingNews()
 {
     return $this->hasOne(PendingNews::className(), ['id' => 'pending_news_id']);
 }