Ok my problem is this; I would like to get a row from a from another table
who has the same ID as my current row. Let me throw some ASCII art for you
to see:
Table 1
  +ID
  +...
Table 2
  +ID
  +...
Now this would be simple if Table 1 had a field like table_2_id, however
this is not the case. I cannot add it either, and even if I could it should
NOT be up to the user to PICK which one they want associated with it, it
must statically be the one with the same ID as table 1. I also know that
doing this from the controller side would be easy as well, but if at all
possible I would like to keep this as modular as possible and do it as a
hasOne or such from the model. Ultimately I would like to use a hasOne and
end up with something like table1->table2->value, any help in regards to
this issue will be very much appriciated;

--Alex
-- 
View this message in context: 
http://www.nabble.com/Include-Rows-From-The-Model-tf4436629.html#a12657692
Sent from the CakePHP mailing list archive at Nabble.com.


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