Hi ppl,
I need to think a way of creating a poll formulary. After some plugin
testing, none of them worked well, since one of them is Propel-only
and the other is only compatible with Symfony 1.0, because of the
AdminGenerator. Then i realized i'd need to create my own solution to
this problem.
After a lot of thinking, i got this database schema:
Poll:
columns:
eqId: { type: integer, primary: true, autoincrement: true }
eqQuestion: { type: string(100), notnull: true }
PollOptions:
columns:
eoId: { type: integer, primary: true, autoincrement: true }
eoAnswer: { type: string(100), notnull: true }
eoPolId: { type: integer, notnull: true }
relations:
Poll: { onDelete: CASCADE, local: eoPollId, foreign: eqId }
Basically, a Poll have an one-to-many association with PollOptions.
So, the problem relies on the formulary creation. I thought on a
formulary with a Question input, and a link "Add Option", so i could
add as many options i want. It could be done with jquery, for example.
The barrier lies on the backend formulary. How could i modify it so it
works that way?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---