public function getSourceCompositeLink()
 {
     return $this->hasOne(ArticleDb::className(), ['id' => 'id', 'author_id' => 'author_id']);
 }
示例#2
0
 public function getSource()
 {
     return $this->hasOne(ArticleDb::className(), ['id' => 'id']);
 }