[jifty-devel] Regarding refers_to and by on JDBI columns

Andrew Sterling Hanenkamp sterling at hanenkamp.com
Wed Jul 18 18:07:00 EDT 2007


On 7/16/07, Jesse Vincent <jesse at bestpractical.com> wrote:
>
>
> On Jul 16, 2007, at 3:05 PM, Andrew Sterling Hanenkamp wrote:
>
> Automated backreferences are good, but need some thought to make them
> intuitive. (IE, I worry a bit about looking in Bar.pm for ->foo and
> not seeing it but having it autogenerated because Foo.pm has ->bar.


That was why my original suggestion was:

column foo => refers_to Jifty::Model::Foo by 'bar';

which would be similar to a Collection back-reference, but indicate a single
element.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070718/dd37ae2d/attachment.htm


More information about the jifty-devel mailing list