Welcome Guest, Not a member yet? Register   Sign In
DataMapper And Tables Separated By Underscores?
#1

[eluser]Vheissu[/eluser]
Obviously this is a WanWizard question but if anyone else knows the answer your help would be gratefully appreciated.

Basically I have a table called 'products' and then a table called 'product_categories' a product can have many categories, so usually with DataMapper you would create a join table right? So following convention the join table would be called "products_product_categories", would this work or is there something else I need to do?

In the join table, do my field names need to be named differently and do I need to add any parameters to my models?


Messages In This Thread
DataMapper And Tables Separated By Underscores? - by El Forum - 08-11-2011, 12:15 AM
DataMapper And Tables Separated By Underscores? - by El Forum - 08-11-2011, 06:40 AM
DataMapper And Tables Separated By Underscores? - by El Forum - 08-11-2011, 10:22 PM
DataMapper And Tables Separated By Underscores? - by El Forum - 08-12-2011, 02:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB