Permalink
Browse files

Update docs/HasManyExample.md

Corrected HasMany Example
  • Loading branch information...
1 parent acc1ab1 commit 740ae3e59b70e81dac5f59a9f176633c4f26d66e @UndefinedOffset committed Oct 5, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 docs/HasManyExample.md
View
7 docs/HasManyExample.md
@@ -23,11 +23,8 @@ has_many Example
/*** TestObject.php ***/
class TestObject extends DataObject {
public static $db=array(
- 'Title'=>'Text'
- );
-
- public static $belongs_many_many=array(
- 'TestPages'=>'TestPage'
+ 'Title'=>'Text',
+ 'SortOrder'=>'Int'
);
public static $default_sort='SortOrder';

0 comments on commit 740ae3e

Please sign in to comment.