Yes. The goal is one-to-one record-to-record references.<br><br>I&#39;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&#39;t supported by JDBI. It seemed like a missing feature to me.
<br><br>If JDBI doesn&#39;t support one-to-one back references, I&#39;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> &lt;<a href="mailto:jesse@bestpractical.com">jesse@bestpractical.com</a>&gt; 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>&gt; To me &quot;refers App::Model::Foo by &#39;bar&#39;&quot; seems like a good place for<br>&gt; syntactic sugar if nothing else. Treat that the same as &quot;refers
<br>&gt; App::Model::FooCollection by &#39;bar&#39;&quot; but then make the accessor<br>&gt; perform the extra &quot;dereference&quot; required so that the syntax for<br>&gt; accessing your record is just:<br>&gt;<br>&gt; my $linked_foo = $bar-&gt;foo;
<br>&gt;<br>&gt; rather than:<br>&gt;<br>&gt; my $linked_foo = $bar-&gt;foo-&gt;first;<br><br>Is it a case where there&#39;s a one-to-one mapping?<br>Referencing a collection while saying you&#39;re referencing a record<br>
is.... potentially very confusing.<br><br>_______________________________________________<br>jifty-devel mailing list<br><a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br><a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel">
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br><br><br></blockquote></div><br>