I'm have a problem on how I should 'design' my database for my current project.
This is my current design: http://img264.imageshack.us/img264/4396/coopdbjx7.png (In the image it shows member_int, but the actual field name is member_id with a data type of int) Here is what I want it to be: Each member can apply for zero or more short term loan(s) A short term loan must have 1 or up to 3 comakers A comaker must also be a member. A member could be a comaker. It matters to know which member is the main 'loaner' and which member is the comaker for each loan. Here is what the relationship looks like atm in my source: Member $hasOne = array('ShortTermLoanComaker'); Member $hasMany = array('ShortTermLoan'); ShortTermLoan $belongsTo = array('Member'); ShortTermLoan $hasAndBelongsToMany = array('ShortTermLoanComaker'); ShortTermLoanComaker $belongsTo = array('Member'); ShortTermLoanComaker $hasAndBelongsToMany = array('ShortTermLoan'); I hope someone could help me with this. Thank you everyone. :D --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
