tracker issue : CF-3039349

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

Bug 78907:Minor errors in "Introducing ColdFusion ORM documentation" Section[OBJECT NAMES]===================================In Step 4, the documentation states "First define the mapping for the {ARTS} table to

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): CF Searching / CF Searching (CF Searching)

Created: 07/18/2009

Components: Documentation, Examples

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

Minor errors in "Introducing ColdFusion ORM documentation" Section[OBJECT NAMES]===================================In Step 4, the documentation states "First define the mapping for the {ARTS} table to define a relationship between {ARTS} and ARTISTS....". This description is followed by a code sample.1. The correct table name is ART (singular), not ARTS (plural)2. The code sample should be labelled. Otherwise it is not clear which name should be used when creating the cfc.{New Label} The CFC file ART.cfc is defined as follows:<cfcomponent persistent="true">     <cfproperty name="artid" generator="increment">     <cfproperty name="artname">     <cfproperty name="price">     <cfproperty name="largeimage">     <cfproperty name="mediaid">     <cfproperty name="issold"> </cfcomponent>[EXAMPLE]===================================The code example in Step 5 is incorrect. The previous steps create a property named "ID":    <cfproperty name="id" column = "ARTISTID" generator="increment"> So the code example must use the method name getID() (or change the property name)    //correct    WriteOutput("<b>" & artist.getId() & " " & artist.getfirstname() & " " &     // incorrect    WriteOutput("<b>" & artist.getartistid() & " " & artist.getfirstname() & " " & [COMMENTS]===================================This section might be more intuitive if there was a consistent usage of either singular or plural object names throughout the example, rather than a mix of both.
Method:


Result:

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

Watson Bug ID:	3039349

External Customer Info:
External Company:  
External Customer Name: CF Searching
External Customer Email: 248D17EF472002E0992015B9
External Test Config: 07/18/2009

Attachments:

Comments: