示例#1
0
 public function getArticleMultArticles()
 {
     return $this->hasMany(MArticleMultArticle::className(), ['article_id' => 'article_id']);
 }
示例#2
0
 public function getArticleMultArticles()
 {
     //        return $this->hasMany(MArticleMultArticle::className(), ['article_mult_id' => 'article_mult_id']);
     return $this->hasMany(MArticleMultArticle::className(), ['article_mult_id' => 'article_mult_id'])->orderBy(['sort_order' => SORT_DESC, 'article_mult_article_id' => SORT_DESC]);
 }