Tuesday, May 8, 2012

belongs to in cake 2.x

Hi,

Using cake version 2.x.

I have Servers and People table

All sys admins contact are put into People table. 

Each server has *one* primary sys admin, and *one* secondary sys admin. I create primary_sys_admin_id and secondary_sys_admin_id in Servers table to point to respective sysadmin in People table. 

I read the group archive and from that I defined Server Model as following: http://pastebin.com/zy0iQjf6  

By my model, I will at least need to create mysql view PrimarySysAdmin to mirror People and also SecondarySysAdmin view to mirror People. 

Am I doing it the right way ?

Thanks
Don

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: