From 3f07ee7450ad9bc2e846dab7f48451380f7a7bb6 Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Mon, 27 Jan 2014 14:45:11 -0400 Subject: [PATCH] Updated docs to correctly work for 3.1.x and future (mentioned in issue #52) --- docs/HasManyExample.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/HasManyExample.md b/docs/HasManyExample.md index 6e648af..ebb1eca 100644 --- a/docs/HasManyExample.md +++ b/docs/HasManyExample.md @@ -27,6 +27,10 @@ class TestObject extends DataObject { 'Title'=>'Text', 'SortOrder'=>'Int' ); + + public static $has_one=array( + 'Parent'=>'TestObject' + ); public static $default_sort='SortOrder'; }