Ok my question is this. How do you associate a record from a table
without an ID tie-in. I.E. i'm developing a zencart add-on and
basically there is the following map I want to relate;
products (
products_id #main ID field
... #other fields
)
products_description ( #i've already used
Yeah I know about the foreign key thing, but that would still require
that I add an ID field to the description table, which I want to avoid
mucking with zencarts default database structure. I would make a
belongsToAndHasMany table, but that would seem silly since all the
values would be the same
Ok then in that case what is the equivalent of $this-query from model
in the controller class, or do I have to call $model-query or
something
Thanks for you help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
Ok that works fine, thank you for your effort, i'll just remember in
the future that advanced model integrations with preexisting tables
will have to be done manually.
--Alex
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
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