Hi!
Im in quite a fix.
I have created 2 tables as of now
users
username,id,password,name,type(owner/incharge/both),email
Primary key -> id
equipment
type,equipmentno,owner,incharge,dateofpurchase
Primary key -> equipmentno
Foreign Keys -> owner and incharge.
The User hasMany Equipment.Equipment can be owned by only 1 person.
I have created a form to add equipment.I need to validate the form by
checking whether the user has entered a valid owner name or not.
To do this I need to associate the models which I am unable to do.
Could you please help me out.
Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to