Re: link database tables that are not matched to a model

2012-08-02 Thread Chris Bull
Not really sure - I'm pretty new to cake, but i've used php for a while. 
Doesevery database table require a model for you to access the information?

There is not a lot of tutorials around that I can find for cake v2. 
Considering cake v3 is inthe works now I hope people release more tutorials.

Thanks

On Thursday, 2 August 2012 16:20:32 UTC+1, AD7six wrote:
>
> In what way does it not-need a model? Alternatively how do you think you 
> can read/write to it without a model?
>
> AD
>

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: link database tables that are not matched to a model

2012-08-02 Thread Chris Bull
The table has no need for a model though? Should i create one and just keep 
it redundant?



On Thursday, 2 August 2012 11:42:15 UTC+1, AD7six wrote:
>
>
>
> On Thursday, 2 August 2012 09:39:07 UTC+2, Chris Bull wrote:
>>
>> Thanks, I looked at those before but as in the example i gave, the 
>> 'accountUsage' table doesn't have a model that goes with it
>
>
> First thing to fix ^
>
> AD 
>

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: link database tables that are not matched to a model

2012-08-02 Thread Chris Bull
Thanks, I looked at those before but as in the example i gave, the 
'accountUsage' table doesn't have a model that goes with it? So i cant use 
those associations can i?

Chris

On Thursday, 2 August 2012 07:28:27 UTC+1, Saran Pal wrote:
>
> 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 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
>> cake-php+unsubscr...@googlegroups.com 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


link database tables that are not matched to a model

2012-08-01 Thread Chris Bull
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php