Hi Chris,

You should used the association rules.

Please take a look.
http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html

cheers..!!

Saran Pal


On Thu, Aug 2, 2012 at 4:50 AM, Chris Bull <[email protected]> wrote:

> 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
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to