예제 #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']);
 }