Update docs/HasManyExample.md

Corrected HasMany Example
This commit is contained in:
Ed 2012-10-05 14:10:58 -03:00
parent acc1ab1f46
commit 740ae3e59b

View File

@ -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';