Hi,

I was always wondering how to access a very remote property of
relation. let me give an example of what I wanted to do:

Imagine that I have 4 tables - table1, table2, table3, table4

so the relation is something like that
table1 has many table2
table2 has one table3
table3 has many table4
etc. /if there are many tables/
/let's assume that I set proper relations between them in the model/

so, with one findAll() function for table1 I could get only table1
details and also close relations /in that case it's table2/
but if I want to get something from table4 I cant get with one
findAll() for table1, and instead of that I need to roll all entries
to get something from desired table /I tries also with "recursive"
attribute of findAll() function but the result's wasnt give me desired
result/. So if somebody know how to get that results I will
appreciate :)

also I want to provide another example:
imagine if there is a way to get everything from above example. Then
how to make some restrictions, so instead of getting all entries from
table4 which are somehow related to table1, I want to get sub
selection of them, like if there is field "active" in table4 I want to
get only entries which are "active" and beleong /releated somehow/ to
table1.

I hope if somebody can understand my thoughts, and to tell me is there
any ways to do this in "simple" way, instead of rolling all entries of
related tables

Thanks in advance
Nik Chankov


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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