tracker issue : CF-3038289

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

Bug 76773:I would like to see if we can have some sort of ActiveRecord style ORM search helpers as per Rails/Grails etc

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Neil Middleton / Neil Middleton (neilmiddleton)

Created: 04/22/2009

Components: ORM Support

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

Duplicate ID:	CF-3037605

Problem:

I would like to see if we can have some sort of ActiveRecord style ORM search helpers as per Rails/Grails etc.

For instance, at the moment, it is impossible to implement syntax similar to the following:

<cfset users = User.find_by_name("neil")>

Instead, as it stands, I need to create a User object, set some properties and then do a load, which is a much more verbose way of doing it. 

Yes, you can create an onMissingMethod version of this in a base object which are extended by your ORM objects, but the performance is never going to be as good as if it were built in to the platform.




Method:


Result:

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

Watson Bug ID:	3038289

External Customer Info:
External Company:  
External Customer Name: Neil Middleton
External Customer Email: 09D8278F4460526F9920157F
External Test Config: 04/22/2009

Attachments:

Comments: