示例#1
0
文件: Topic.php 项目: 0ps/simpleforum
 public function getAuthorFollowedBy()
 {
     return $this->hasMany(Favorite::className(), ['target_id' => 'user_id']);
 }
示例#2
0
 public function getFolders()
 {
     return $this->hasMany(Favorite::className(), ['uid' => 'id']);
 }