mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
cd541ecd3d
commit
162a11350e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user