authorobject in the
applicationscope (unless it's the first time you call this function, in which case it will also create and store it in the
authoris just an example here, and you'll use the names of the
.cfcfiles you have created in the
firstNamefield of the
authorrecord with a primary key value of
id, it increments automatically, and it's of the
integerdata type. However, CFWheels is very flexible in this area. You can setup your primary keys in practically any way you want to. You can use natural keys (
varchar, for example), composite keys (having multiple columns as primary keys), and you can name the key(s) whatever you want.
modelsfolder and make it extend the
modelsfolder. That's where they'll go.
authorstable. (For the purpose of showing some examples, we will assume that you have created a file named
Author.cfc, which will then be mapped to the
authorstable in the database).
1, change his first name, and save the record back to the database.
Author.cfcclass, the table name should be
authormodel to map to a table in your database named
tbl_authors, you would add the following code to the
sessionscope, an external NoSQL database, or as an email sent from a contact form).
nilin CFML (at least not in the earlier versions of it which we still support), CFWheels will assume that when you save a blank string to the database it should be converted to
NULLvalues once they've been mapped to a CFWheels object / result set).