[jifty-devel] Regarding refers_to and by on JDBI columns
Jesse Vincent
jesse at bestpractical.com
Mon Jul 16 14:47:55 EDT 2007
On Jul 16, 2007, at 2:46 PM, Andrew Sterling Hanenkamp wrote:
> To me "refers App::Model::Foo by 'bar'" seems like a good place for
> syntactic sugar if nothing else. Treat that the same as "refers
> App::Model::FooCollection by 'bar'" but then make the accessor
> perform the extra "dereference" required so that the syntax for
> accessing your record is just:
>
> my $linked_foo = $bar->foo;
>
> rather than:
>
> my $linked_foo = $bar->foo->first;
Is it a case where there's a one-to-one mapping?
Referencing a collection while saying you're referencing a record
is.... potentially very confusing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070716/54cb796a/PGP-0001.pgp
More information about the jifty-devel
mailing list