Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Data Model Questions
SilverStripe Forums » Data Model Questions » DataObject::request
|
Page:
1
|
Go to End | |
| Author | Topic: DataObject::request | 453 Views |
-
DataObject::request

30 May 2009 at 7:01am
I have a need to build up a special purpose request, in the manner of DataObject::request as mentioned in the recipe datamodel link http://doc.silverstripe.org/doku.php?id=datamodel
However, I get a 'not found' error for this function. I looked in the core model classes, but could not find any dataobjectrequest class, nor any method of the DataObject class named 'request'
In the past, I have been led off-track by my 'dyslexic' reading of the documentation, code and forums into paths of confusion. Again, I am unable to resolve the intent with the reality.
Any hints on where I should look for authoritative source code on DataObject::request ?
-
Re: DataObject::request

2 June 2009 at 10:07am
Sorry, the documentation was outdated in this case, request() is no longer available. Not sure what "special purpose" you're referring to, but you can express the same stuff through a custom SQLQuery object. For this type of "fluent" API, we're planning to create a new "DataMapper" class (see http://open.silverstripe.com/ticket/2986)
-
Re: DataObject::request

2 June 2009 at 10:52am
Thanks for the information on the obsolete documentation -- Shall I, or have you already put in a ticket request to update the recipe referring to DataObject::request.
Also, I'm happy to know you are actively brainstorming new 'lazy' query models for a future version of SilverStripe. I'll keep looking for it.
During the interim, I'll start looking for solid documentation on the SQLQuery object. Thanks.
| 453 Views | ||
|
Page:
1
|
Go to Top |


