Example #1
0
 public function getAuthorFollowedBy()
 {
     return $this->hasMany(Favorite::className(), ['target_id' => 'user_id']);
 }
Example #2
0
 public function getFolders()
 {
     return $this->hasMany(Favorite::className(), ['uid' => 'id']);
 }