Is it possible to represent the fifth normal form in PHP ActiveRecord?
i.e.
Person <=> (person_id) person_phone (phone_id) <=> Phone
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The fifth normal can be represented with “$has_many through”
http://www.phpactiverecord.org/projects/main/wiki/Associations
In this example an order is associated with users by going the
its payments association.
I found the answer here:
You could create a model for the joint table, and then associate the phone table through the join table!
http://www.phpactiverecord.org/boards/4/topics/226
Also found this:
http://svn.phpontrax.com/wiki/ActiveRecordTableAssociations