|
These methods operate on individual objects which means you first have to fetch or create an object and then call the method on that object. You can call these methods from anywhere but it is not recommended to call them from view pages. When calling them from its own model file it is recommended to reference the scope explicitly with the this keyword. Examplecontrollers/Blog.cfc: <cfset anAuthor = model("author").findByKey(1)>
<cfset anAuthor.delete()>FunctionsAssociations (hasMany): - addXXX()
- createXXX()
- deleteXXX()
- deleteAllXXX()
- findOneXXX()
- hasXXX()
- newXXX()
- removeXXX()
- removeAllXXX()
- XXX()
- XXXCount()
Associations (hasOne): - createXXX()
- deleteXXX()
- hasXXX()
- newXXX()
- removeXXX()
- setXXX()
- XXX()
Associations (belongsTo): Changes: - XXXHasChanged()
- XXXChangedFrom()
THE REST OF THE CONTENT ON THIS PAGE WILL BE GENERATED FROM THE SOURCE CODE
|