Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 18ae29654f
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.523 kb
<cfcomponent persisten="true" extends="cfmongodb.components.MongoDocument" output="false">
<cfscript>
/* -------------------------------------------------
** Syntax for defining a persistent model **
this.model = structNew();
this.model['name'] = 'default value';
----------------------------------------------------*/
this.model = structNew();
this.model['title'] = 'default';
this.model['body'] = 'default';
this.model['timestamp'] = getTickCount();
this.model['tags'] = [];
</cfscript>
</cfcomponent>
Jump to Line
Something went wrong with that request. Please try again.