PageRenderTime 20ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/wheels/tests/_assets/models/Gallery.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 9 lines | 7 code | 2 blank | 0 comment | 0 complexity | 742b08cc7bf5a21dea63beb7ddda6892 MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent extends="Model">
  2. <cffunction name="init">
  3. <cfset belongsTo(name="user", modelName="user", foreignKey="userid")>
  4. <cfset hasMany(name="photos", modelName="photo", foreignKey="galleryid")>
  5. <cfset nestedProperties(associations="photos", allowDelete="true")>
  6. </cffunction>
  7. </cfcomponent>