Hi guys,
I have an issue with HABTM and cakephp. I'm using 1.2
I have 2 tables:
Sandwiches
Ingredients
They are joined using a HABTM.
I have 3 rows in my ingredients table. ham, bread, cheese.
now, I make a new sandwich row called "ham sandwich".
I use HABTM to link the ham and bread to my "ham sandwich".
However, I need 2 slices of bread and only 1 slice of ham to make this
sandwich.
So I tried to make my HABTM relationship non-unique, and link bread
twice to my "ham sandwich".
The problem is, when I do a find, only a single bread row comes back
along with the ham row. So I'm 1 slice of bread short for my sandwich :
(
Anyone know how I can solve this?
thanks,
Tony