Welcome Guest, Not a member yet? Register   Sign In
datamapper many to many
#2

[eluser]WanWizard[/eluser]
With DataMapper 1.8.2 (on CI 2.0.2) I can not reproduce that.

When I execute the exact same code, the new post record is created, and the id of the new post record is used to insert the relation to all selected categories in the categories_posts table.

You're installation is up to date? Your models are defined correctly (as in defined BOTH ways)?


Messages In This Thread
datamapper many to many - by El Forum - 01-18-2012, 06:05 AM
datamapper many to many - by El Forum - 01-18-2012, 06:37 AM
datamapper many to many - by El Forum - 01-18-2012, 08:31 AM
datamapper many to many - by El Forum - 01-18-2012, 08:46 AM
datamapper many to many - by El Forum - 01-18-2012, 09:12 AM
datamapper many to many - by El Forum - 01-18-2012, 11:49 AM
datamapper many to many - by El Forum - 01-18-2012, 12:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB