[html-formfu] the name of the belongs_to field in DBIC model
Zbigniew Lukasiak
zzbbyy at gmail.com
Thu Jan 3 09:43:58 GMT 2008
There are two conventions on the names of the belongs_to relation and
the foreign key field upon which it is built. One is that they have
the same name - the other is that the field's name is something like
'foreigntable_id' and the relation is 'foreigntable'. The advantage
of the second is that you can use the field directly using the
standard accessors.
Currently the name of the FormFu field needs to be the same as the
database field (not the relation). I have no preferences of one or
the other - but I would like to commit some tests documenting that
behaviour.
--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
More information about the HTML-FormFu
mailing list