MINOR Added code example for using DataObject::$many_many_extraFields

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@71305 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-02-03 21:07:32 +00:00
parent cd541ecd3d
commit 162a11350e

View File

@ -2910,6 +2910,16 @@ class DataObject extends ViewableData implements DataObjectInterface,i18nEntityP
/** /**
* Extra fields to include on the connecting many-many table. * Extra fields to include on the connecting many-many table.
* This is a map from field name to field type. * This is a map from field name to field type.
*
* Example code:
* <code>
* public static $many_many_extraFields = array(
* 'Members' => array(
* 'Role' => 'Varchar(100)'
* )
* );
* </code>
*
* @var array * @var array
*/ */
public static $many_many_extraFields = null; public static $many_many_extraFields = null;