Hi guys, I could use some help with the complicated relation I am trying to create. I have 2 tables: ingredients and units. One ingredient can have many units(HABTM relation). This creates a `ingredients_units` table with the fields:
-ingredient_id -unit_id -ammount But the problem is, that if an ingredient has many units I have to somehow be able to convert between each unit. The complication is that the calculations from one unit to another depend on the ingredient. So the table I am wanting to create has to have the following fields: -ingredient_id -unit1_id -unit2_id -conversion_number Is there a way I can create such a relation with Cake? Or do I have to stick to my own SQL? I'll be thankful for any response. ;) 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
