Login | Forgot password | Register

X

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.

Jump to:

1154 Posts in 324 Topics by 274 members

Data Model Questions

SilverStripe Forums » Data Model Questions » DataObject::request

Page: 1
Go to End
Author Topic: DataObject::request 453 Views
  • jahbini
    avatar
    Community Member
    11 posts

    DataObject::request Link to this post

    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 ?

  • Ingo
    avatar
    Administrator
    595 posts

    Re: DataObject::request Link to this post

    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)

  • jahbini
    avatar
    Community Member
    11 posts

    Re: DataObject::request Link to this post

    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

Currently Online: motly, Ryoken

Welcome to our latest member: motly

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.