<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -245,5 +245,13 @@ namespace FluentNHibernate.Testing.FluentInterfaceTests
                 .ModelShouldMatch(x =&gt; x.Key.NotNull.ShouldBeTrue());
         }
 
+        [Test]
+        public void PropertyRefShouldSetModelValue()
+        {
+            OneToMany&lt;ChildObject&gt;(x =&gt; x.BagOfChildren)
+                .Mapping(m =&gt; m.PropertyRef(&quot;prop1&quot;))
+                .ModelShouldMatch(x =&gt; x.Key.PropertyRef.ShouldEqual(&quot;prop1&quot;));
+        }
+
     }
 }
\ No newline at end of file</diff>
      <filename>src/FluentNHibernate.Testing/FluentInterfaceTests/OneToManyMutablePropertyModelGenerationTests.cs</filename>
    </modified>
    <modified>
      <diff>@@ -143,6 +143,18 @@ namespace FluentNHibernate.Mapping
         }
 
         /// &lt;summary&gt;
+        /// This method is used to set a different key column in this table to be used for joins.
+        /// The output is set as the property-ref attribute in the &quot;key&quot; subelement of the collection
+        /// &lt;/summary&gt;
+        /// &lt;param name=&quot;propertyRef&quot;&gt;The name of the column in this table which is linked to the foreign key&lt;/param&gt;
+        /// &lt;returns&gt;OneToManyPart&lt;/returns&gt;
+        public OneToManyPart&lt;TChild&gt; PropertyRef(string propertyRef)
+        {
+            keyMapping.PropertyRef = propertyRef;
+            return this;
+        }
+
+        /// &lt;summary&gt;
         /// Sets the order-by clause for this one-to-many relationship.
         /// &lt;/summary&gt;
         public OneToManyPart&lt;TChild&gt; OrderBy(string orderBy)</diff>
      <filename>src/FluentNHibernate/Mapping/OneToManyPart.cs</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0e26fad1ed28bf51eca9d427afd33d440c50089a</id>
    </parent>
  </parents>
  <author>
    <name>Paul Batum</name>
    <email>paul.batum@gmail.com</email>
  </author>
  <url>http://github.com/jagregory/fluent-nhibernate/commit/01d19c4b8f1fe26e95f1796f83bdca0b26e78653</url>
  <id>01d19c4b8f1fe26e95f1796f83bdca0b26e78653</id>
  <committed-date>2009-10-31T02:49:14-07:00</committed-date>
  <authored-date>2009-10-31T02:49:14-07:00</authored-date>
  <message>Applied patch provided by paul lemon for setting the property-ref on a key, and added a test for it.</message>
  <tree>4de38efcdfd5051fcb60513672d98944ebee3d34</tree>
  <committer>
    <name>Paul Batum</name>
    <email>paul.batum@gmail.com</email>
  </committer>
</commit>
