Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Connect With Other SilverStripe Members /

For all SilverStripe-related topics that don't fit into any of the categories above.

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

Generate docblocks for your dataobjects


Go to End


1824 Views

Avatar
lekoala

Community Member, 31 Posts

22 October 2015 at 8:59pm

Hi everyone,

I have recently written for myself the following simple tool:

http://ss-dodoc.lekoala.be/

You simply copy paste the variables of your dataobject, and it returns docblocks you can copy-paste on top of your class to make your IDE happy!

I'll publish the sources soon for anyone willing to use it locally.

Feel free to test with the following code

class Test {
private static $db=array('Title' => 'Varchar');
private static $has_one = array('MyMember' => 'Member');
}

Hope you enjoy it!