Hi!

I have a table phrases. It has fields id as INT and value as TEXT. This
table is used to store different phrases or sentences. Now I want to
describe a car with a model name and description. I want both these values
to reference phrases table. In my opinion Car hasOne name and hasOne
description. But it seems that in SQL/CakePHP notation it is not true. To
make hasOne in Cake I would need to add field car_id in my phrases table.
Then if I introduce the table cities also with name and description, I would
need additional rows in phrases table...

I think that I can create additional tables cars_names and cars_descriptions
and connect them through HABTM association with cards and phrases. But I
find inconvenient to create additional table for every phrase field  I want
to add.

Maybe someone knows what can I do in this situation?

Regards,
Vadim.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to