Пример #1
0
 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']);
 }