On Thu, Jan 24, 2013 at 9:14 PM, Advantage+ wrote:
> I need to create a simple poll for users and stumped on saving the results
> when user submits the poll.
>
> Poll hasMany Question
>
> Poll hasMany Result
>
> Question hasMany Choice
This is how I did it:
Poll
hasMany PollQuestion
Poll
lso needs to
include poll_id, user_id, question_id, and choice_id (this data will then
get pulled to create a chart)
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of polutan
Sent: Friday, January 25, 2013 1:21 AM
To: cake-php@googlegroups.com
Subject: Re: Sim
h i think i need to fix your models as below :
Poll hasMany Choice
Choice hasMany ChoiceResult or PollResult
That;s just my idea.
Then...you should save your polling result to ChoiceResult model or
choice_result table.
*choice_result* table :
id
choice_id
other_result
sample data :
id | cho