<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -682,10 +682,11 @@
 	&lt;cfscript&gt;
 		var loc = {};
 		loc.query = findByKey(key=key(), reload=true, returnAs=&quot;query&quot;);
-		loc.iEnd = ListLen(variables.wheels.class.propertyList);
+		loc.properties = propertyNames();
+		loc.iEnd = ListLen(loc.properties);
 		for (loc.i=1; loc.i &lt;= loc.iEnd; loc.i++)
 		{
-			loc.property = ListGetAt(variables.wheels.class.propertyList, loc.i);
+			loc.property = ListGetAt(loc.properties, loc.i);
 			this[loc.property] = loc.query[loc.property][1];
 		}
 	&lt;/cfscript&gt;</diff>
      <filename>wheels/model/crud.cfm</filename>
    </modified>
    <modified>
      <diff>@@ -27,14 +27,20 @@
 
 &lt;!--- PUBLIC MODEL CLASS METHODS ---&gt;
 
-&lt;cffunction name=&quot;propertyNames&quot; returntype=&quot;string&quot; access=&quot;public&quot; output=&quot;false&quot; hint=&quot;Returns a list of property names ordered by their respective column's ordinal position in the database table.&quot;
+&lt;cffunction name=&quot;propertyNames&quot; returntype=&quot;string&quot; access=&quot;public&quot; output=&quot;false&quot; hint=&quot;Returns a list of property names ordered by their respective column's ordinal position in the database table and with eventual calculated properties at the end.&quot;
 	examples=
 	'
 		&lt;!--- Get a list of the property names in use in the user model ---&gt;
   		&lt;cfset propNames = model(&quot;user&quot;).propertyNames()&gt;
 	'
 	categories=&quot;model-class,miscellaneous&quot; chapters=&quot;object-relational-mapping&quot; functions=&quot;columnNames,dataSource,property,table,tableName&quot;&gt;
-	&lt;cfreturn variables.wheels.class.propertyList&gt;
+	&lt;cfscript&gt;
+		var loc = {};
+		loc.returnValue = variables.wheels.class.propertyList;
+		if (ListLen(variables.wheels.class.calculatedPropertyList))
+			loc.returnValue = ListAppend(loc.returnValue, variables.wheels.class.calculatedPropertyList);
+		&lt;/cfscript&gt;
+	&lt;cfreturn loc.returnValue&gt;
 &lt;/cffunction&gt;
 
 &lt;!--- PUBLIC MODEL OBJECT METHODS ---&gt;</diff>
      <filename>wheels/model/properties.cfm</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>032cfe2788ba827956742e3b21d460804465f39a</id>
    </parent>
  </parents>
  <author>
    <name>per.djurner</name>
    <email>per.djurner@d8ff095c-9719-0410-9cd3-1dd5d13d90f5</email>
  </author>
  <url>http://github.com/rip747/cfwheels/commit/49f689538e30003e452661ee6a2d9bc550c05024</url>
  <id>49f689538e30003e452661ee6a2d9bc550c05024</id>
  <committed-date>2009-11-05T15:35:29-08:00</committed-date>
  <authored-date>2009-11-05T15:35:29-08:00</authored-date>
  <message>Made propertyNames() return calculated properties as well.
Made reload() reload calculated properties as well.

git-svn-id: https://cfwheels.googlecode.com/svn/trunk@3667 d8ff095c-9719-0410-9cd3-1dd5d13d90f5</message>
  <tree>0aa8591659721e7c84c1470a90ca35d556b329f7</tree>
  <committer>
    <name>per.djurner</name>
    <email>per.djurner@d8ff095c-9719-0410-9cd3-1dd5d13d90f5</email>
  </committer>
</commit>
