17452 Posts in 4473 Topics by 1971 members
|Go to End|
13 December 2008 at 4:19am Last edited: 13 December 2008 4:19am
I've a problem with datarelations.
On my page I've some Events that each Member can sing up to. The problem is that the member has to be able to choose what to drink and eat for each Event. I've tried to solve it using an extra dataobject called Participant like this
Each member can sing up to the event through a form on the event-page.
The problem is that I dont know how to save the information in the correct way.
$p = new Participant();
$p->Drink = $data['toDrink'];
$p->Vegetarian = $data['Vegetarian'];
$p->Member = Member::CurrentUser();
$e = $p->Events();
$existingParticipants = $this->Participants();
and the table
is still empty after the member has signup => The member doesnt get signed up..
|Go to Top|