Jump to:

3432 Posts in 1058 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » DataObject::request

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1471 Views
  • jahbini
    Avatar
    Community Member
    13 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
    Forum Moderator
    801 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
    13 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.

    1471 Views
Page: 1
Go to Top

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

Comments on this website? Please give feedback.