liquid_feedback_frontend

view model/vote.lua @ 0:3bfb2fcf7ab9

Version alpha1
author bsw/jbe
date Wed Nov 18 12:00:00 2009 +0100 (2009-11-18)
parents
children afd9f769c7ae
line source
1 Vote = mondelefant.new_class()
2 Vote.table = 'vote'
4 Vote:add_reference{
5 mode = 'm1',
6 to = "Issue",
7 this_key = 'issue_id',
8 that_key = 'id',
9 ref = 'issue',
10 }
12 Vote:add_reference{
13 mode = 'm1',
14 to = "Initiative",
15 this_key = 'initiative_id',
16 that_key = 'id',
17 ref = 'initiative',
18 }
20 Vote:add_reference{
21 mode = 'm1',
22 to = "Member",
23 this_key = 'author_id',
24 that_key = 'id',
25 ref = 'author',
26 }

Impressum / About Us