m14t/sots — Issue #157: [Clarification] Interests vs Following
Author: m14t
Created: 2011-11-16 03:32:49+00:00
State: open
Labels: Blocked, High

Hey @aaronhall,

I was working on the user registration / facebook connect stuff (#39) and came across some code that your insight might help me on.

Basically I wanted to set a requirement on http://sots.ua5host.com/signup/interests that a user selects at least one entity to follow per group ( Brands, Climbers, Topics ). I expected this to be a join table between interest types and users that I could easily add a `min` option on a sfValidatorDoctrineChoice field, but instead found this custom `UserInterestData` class.

It seems like the joining `UserFollowing` Table is work in the right direction, but was there a reason this wasn't maybe a parent table for a `UserFollowingClimber`, `UserFollowingBrand`, and `UserFollowingContentPageCategory` tables (using concrete inheritance)?

All this digging around also turned me onto the `UserInterest` table, which doesn't have any data in the fixture files and its name is so similar to the `UserFollowing` stuff (since that stuff is called on the signup/interests page), that I was unsure if that was still used or needed.

I'm sure you have good reasons for the approach you took and don't mean for this to sound critical, I just want to make sure I understand what's going on here before I start mucking around.

Thanks!
-Matt