Jump to:

22976 Posts in 11702 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Abstract DataObjects

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 215 Views
  • avengex
    Avatar
    Community Member
    11 Posts

    Abstract DataObjects Link to this post

    Hey guys. I want to create an abstract DataObject but as many know, the database builder (and likely other things) don't like this.

    I think this would be a pretty useful feature to have, as without it, we have to take some weird steps around the lack of support.

    What is the lead dev consensus on this? Is it worth working on, and if so, what version would you want it in?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Abstract DataObjects Link to this post

    what version would you want it in?

    This would be a change for 3.2 as 3.1 is in testing nearing release so probably too late to get something like this in as I'm not sure what would break. As far as I know, you cannot have an abstract class extend a non abstract class so you'd need to look at making the whole DO chain abstract (viewable data, I think Object already is). To me it makes semantic sense for it to be abstract (you don't create a DataObject, in that case you'd use ArrayData).

    215 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.