Wednesday, August 1, 2012

link database tables that are not matched to a model

I have a table, 'userDetails' and another table 'accountUsage'. The first stores emails, passwords etc. the other login dates, creation dates etc.
They both have a field called 'id' which links the two rows together for 1 person.

In cake i have a model called 'User' which handles logging in/out, registration...   
Can i link the two tables inside the user model so i can access and update them both simultaneously or do I have to use a join every time?

Thanks

--
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: