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