Welcome Guest, Not a member yet? Register   Sign In
Datamapper relationship problems
#3

[eluser]Iverson[/eluser]
[quote author="OverZealous.com" date="1237795004"]Iverson,

Did you ever get this working?

In your example, you need to have a has_one or has_many in poll_answer for poll. You always need to have both sides of every relationship.

Otherwise, you haven't provided too much to go on here. Try turning on profiling, and checking the SQL queries. See if something is out of place. Run the queries directly on your DB to see what you get. Make sure you get a result for the second line ($p->poll_answer).[/quote]

How did I miss that? :-S


Messages In This Thread
Datamapper relationship problems - by El Forum - 03-14-2009, 03:35 PM
Datamapper relationship problems - by El Forum - 03-22-2009, 08:56 PM
Datamapper relationship problems - by El Forum - 03-23-2009, 08:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB