tracker issue : CF-3038575

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 77251:The example given for EntitySave in centaurbeta2_dev

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Darron Schall / Darron Schall (darronschall)

Created: 05/14/2009

Components: Documentation, Examples

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 9,0,0,233019 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

The example given for EntitySave in centaurbeta2_dev.pdf is incorrect.  On page 562, the following is the example code:

<cfset employee = createObject("Employee")>
<cfset employee.setFirstName("Marcia")>
<cfset employee.setlastName("Em")>
<cfset EntitySave(employee)>

The call to createObject needs to be changed to:

<cfset createObject("component", "employee")>

Note I've lowercased "employee" to be consistent with the text in this section.

Also, on a related note, on page 564 when talking about Transactions for ORM, the following example code is given:

<cfset empObj = createobject("component", "employees")>

The "employees" text here should not have an "s" on the end to be consistent with the rest of the examples in this section.
Method:


Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3038575

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Darron Schall
External Customer Email: 65E53F91439B07610AAC0C15
External Test Config: 05/14/2009

Attachments:

Comments: