Reputation: 3673
Hey i've got a pretty simple relationship in my Datamapper model..
in my model Ticket i hav:
var $has_one = array("user");
and when i try to
$ticket->user->get()->username;
it says:
DataMapper Error: 'ticket' is not a valid parent relationship for User. Are your relationships configured correctly?
i dont see the problem :/
Upvotes: 2
Views: 1571
Reputation: 70507
What does your user model look like? Does it map back to the Ticket as well?
var $has_many = array("ticket");
Upvotes: 2