tracker issue : CF-3038305

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

Bug 76803:I'd like a function such as EntityNew() that accepts an entity name and returns a new entity of that type

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Jon Hartmann / Jon Hartmann (jon.hartmann)

Created: 04/23/2009

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 234923

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 2

Problem:

I'd like a function such as EntityNew() that accepts an entity name and returns a new entity of that type. This would be unlock CreateObject() in that you would specify the entity name rather than the CFC path of the CFC that defines the entity. This would be useful in any number of ways, and would help in situations like the one in this post:

https://prerelease.adobe.com/project/forum/thread.html?cap=87529BDA13744B3DB718E841890B9240&forid={936680A8-3CD1-4D52-BCEE-9EF903D7FB02}&topid={D0182499-B4D8-4B6D-A92B-423C225BBF18}
Method:


Result:

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

Watson Bug ID:	3038305

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Jon Hartmann
External Customer Email: 3124041A447C75CA99201549
External Test Config: 04/23/2009

Attachments:

Comments:

+1, this would be very helpful
Vote by External U.
23775 | November 10, 2011 07:19:39 PM GMT
When you already have EntityLoad( class ), EntityDelete( class ), EntitySave( class ) it makes so much sense to have a EntityNew( class ) method.
Vote by External U.
23776 | November 10, 2011 07:19:40 PM GMT