Status/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Andrew Scott / Andrew Scott (Andrew Scott)
Created: 12/06/2009
Components: ORM Support
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Minor / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
This is in response to bug # 75679 being closed.i have raised it again because there is a huge inconsistancy when using either colon or equal signs in the ORM when in comparison to other areas. For exampleuser = new User(username: 'andrews');Can be found in the arguments, and can be manually set by some magic code. However in ORM we can't use the colon and we are forced to use the equals sign inconsistent behaviour.Also another area where it is inconsistent is with struct literals for example this worksmyStruct = {username = 'andrews'};where this will notmyStruct = {username:'andrews'};The use of the colon when doing something like this in a normal method, makes this bug extremly important to close these inconsistancies.myEntity = new Entity(username:'andrews');And the entity has the following, again makes the cfscript and the lack of colons very inconsistant through the language. I raised this bug to bridge that gap and make it more consistant and all you do is keep shutting / closing the bug down.Inside an Entity//---------------------------------------------------------------------------------------//This is our constructor that will allow us to pass in default params in the without//using the setter option for each one.//---------------------------------------------------------------------------------------function init() {for(item in arguments) {evaluate("set#item#(arguments[item])");}return this;}
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040513
External Customer Info:
External Company:
External Customer Name: Andrew Scott
External Customer Email: 3DEA395D4926D3D0992015B9
External Test Config: 12/06/2009
Attachments:
Comments: