Yes. The goal is one-to-one record-to-record references.<br><br>I'm working on some profile customization code for CAS+ using database backed models. I was working on the relationship stuff when I discovered that one-to-one relationships with back-references isn't supported by JDBI. It seemed like a missing feature to me.
<br><br>If JDBI doesn't support one-to-one back references, I'll just put them in as regular subroutines on the generated CAS+ profile classes. I just wanted to see if I should implement it in JDBI first, then virtual-models, and then CAS+ or if it was just going into CAS+.
<br><br><div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">Jesse Vincent</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On Jul 16, 2007, at 2:46 PM, Andrew Sterling Hanenkamp wrote:<br><br>> To me "refers App::Model::Foo by 'bar'" seems like a good place for<br>> syntactic sugar if nothing else. Treat that the same as "refers
<br>> App::Model::FooCollection by 'bar'" but then make the accessor<br>> perform the extra "dereference" required so that the syntax for<br>> accessing your record is just:<br>><br>> my $linked_foo = $bar->foo;
<br>><br>> rather than:<br>><br>> my $linked_foo = $bar->foo->first;<br><br>Is it a case where there's a one-to-one mapping?<br>Referencing a collection while saying you're referencing a record<br>
is.... potentially very confusing.<br><br>_______________________________________________<br>jifty-devel mailing list<br><a href="mailto:email@example.com">firstname.lastname@example.org</a><br><a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel">