Look here:
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/yaml-schema-files/en#relationships:many-to-many
This is how you have to define a many-to-many relationship. For one, you forgot
to make both columns in the refClass a primary key — this is also why the index
is missing in y
There's got to be a simpler way to do what I'm trying to do...
I have two pretty simple models.
Items, and subcategories.
An item can have any number of subcategories.
I don't really care how this is represented in the database, It Just
Needs To Work. I figured as a ORM layer, Doctrine would be a