In 1.1 I modified the generator so when creating a many-many instead of an if/else check depending on if it was a relation table, I just had it create both and modified the template to add a "//pivot table" comment next to the tables that were relational.
That way I get both many_many tables along with pivot table relations in case of meta data.
It would be nice to have access to both in 2.0.
edit:
Also, occasionally there's a many_many relation where the pivot table would have
> id (PK)
> order_id (FK1, PK)
> item_id (FK2, PK)
And the relation is just through 'order' and 'item', but there's a id as well. Would be nice if while checking if there is a many_many relation it could skip id if there were 3 pk's. But that's probably a fringe case.
Coksnuss, on 16 June 2012 - 11:38 AM, said:
In the example of page one we have the table
tbl_order_item
> order_id (FK1, PK)
> item_id (FK2, PK)
> quantity
> subtotal
> id
Has the new framework an approach implemented to access the "meta-informations" in the join table (namely: quantity, subtotal and id)?