liquid_feedback_frontend

diff model/suggestion.lua @ 0:3bfb2fcf7ab9

Version alpha1
author bsw/jbe
date Wed Nov 18 12:00:00 2009 +0100 (2009-11-18)
parents
children 23c98752e697
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/model/suggestion.lua	Wed Nov 18 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +Suggestion = mondelefant.new_class()
     1.5 +Suggestion.table = 'suggestion'
     1.6 +
     1.7 +Suggestion:add_reference{
     1.8 +  mode          = 'm1',
     1.9 +  to            = "Initiative",
    1.10 +  this_key      = 'initiative_id',
    1.11 +  that_key      = 'id',
    1.12 +  ref           = 'initiative',
    1.13 +}
    1.14 +
    1.15 +Suggestion:add_reference{
    1.16 +  mode          = 'm1',
    1.17 +  to            = "Member",
    1.18 +  this_key      = 'author_id',
    1.19 +  that_key      = 'id',
    1.20 +  ref           = 'author',
    1.21 +}
    1.22 +
    1.23 +Suggestion:add_reference{
    1.24 +  mode          = '1m',
    1.25 +  to            = "Opinion",
    1.26 +  this_key      = 'id',
    1.27 +  that_key      = 'issue_id',
    1.28 +  ref           = 'opinions',
    1.29 +  back_ref      = 'issue',
    1.30 +  default_order = '"id"'
    1.31 +}

Impressum / About Us