My favorites | Sign in
Project Logo
                
Search
for

NOTE: This wiki contains "bleeding edge" documentation, which may reflect a future version of Wheels. Entries in the wiki may also be incomplete and unedited. Please visit cfwheels.org/docs for the "official" documentation.

Introduction

Handling Requests With Controllers

Database Interaction Through Models

Displaying Views to Users

Working With Wheels

Contributing to Wheels

Sample Applications

The Wheels API

* Not scheduled for the 1.0 release.

Updated Nov 05, 2009 by per.djurner
Labels: chapter, 1.0
ModelObjectFunctions  
Listing of all model object methods.

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.

Example

controllers/Blog.cfc:

<cfset anAuthor = model("author").findByKey(1)>
<cfset anAuthor.delete()>

Functions

Associations (hasMany):

Associations (hasOne):

Associations (belongsTo):

Changes:

THE REST OF THE CONTENT ON THIS PAGE WILL BE GENERATED FROM THE SOURCE CODE


Sign in to add a comment
Hosted by Google Code