Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Darron Schall / Darron Schall (darronschall)
Created: 05/21/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:
On page 549 in the centaurbeta2_dev.pdf, the example given is incorrect.
Unique foreign key association
In this type of association, the foreign key of one table maps to the primary key of another table, and the foreign key column has a unique constraint on it. The foreign key may either be in the source object's table or the target object's table. Depending on whether the foreign key is present in the source object's table or the target object's table, column or fkcolumn should be specified.
Syntax
<cfproperty name="fieldname" fieldtype="one-to-one" cfc="Referenced_CFC_Name"
fkcolumn="foreign_key_column"
mappedby="Mapped_Field_name_in_referenced_CFC"
cascade="cascade_options"
fetch="join|[select]"
lazy="[true]|false">
If I try to include both an fkcolumn and a mappedby in my cfproeprty, I get the following runtime error:
Mappedby attribute can not be specified along with fkcolumn attribute
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3038666
External Customer Info:
External Company:
External Customer Name: Darron Schall
External Customer Email: 65E53F91439B07610AAC0C15
External Test Config: 05/21/2009
Attachments:
Comments: