Welcome Guest, Not a member yet? Register   Sign In
How to represent this relationship in DataMapper
#5

[eluser]WanWizard[/eluser]
Your query shows it's using "authored_id", which is a field that does not exist.

With this configuration, either name your FK like this, or use the "join_self"/"join_other" fields of the relationship definition to control the name of the FK.

Note that the column MUST end on "_id", and the name you specify in the relationship definition MUST NOT.


Messages In This Thread
How to represent this relationship in DataMapper - by El Forum - 08-17-2013, 03:28 PM
How to represent this relationship in DataMapper - by El Forum - 08-17-2013, 03:49 PM
How to represent this relationship in DataMapper - by El Forum - 08-17-2013, 04:00 PM
How to represent this relationship in DataMapper - by El Forum - 08-18-2013, 06:57 AM
How to represent this relationship in DataMapper - by El Forum - 08-18-2013, 09:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB