Hi, I have just started playing with Cake and had some fights with validation. Now I am at the point where I need to use hasMany on my simple (or maybe complex) database. I am working on a web application for articles submission and review. For now I have two models - User and Paper with the following relations:
- Papers table has a foreign key to Users table for author - from what I read this is pretty simple to implement - adding hasMany to User model and belongsTo to Paper model should do the trick - Papers table has 3 foreign keys to Users table for reviewers - and this is where my question appears - can Cake handle that? should I add 3 separate hasOne entries to Paper model pointing to User model? if so, what should be added on User model side? or maybe there should be 4 hasMany entries on User model each pointing to Paper model with different foreign keys set? Thanks in advance for all suggestions. Robert --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
