mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Updated the DocBlock for ManyManyList's add() method
This commit is contained in:
parent
9c50b03b86
commit
6fb8d27ac5
@ -188,6 +188,13 @@ class ManyManyList extends RelationList {
|
|||||||
* Add an item to this many_many relationship
|
* Add an item to this many_many relationship
|
||||||
* Does so by adding an entry to the joinTable.
|
* Does so by adding an entry to the joinTable.
|
||||||
*
|
*
|
||||||
|
* Can also be used to update an already existing joinTable entry
|
||||||
|
*
|
||||||
|
* Example:
|
||||||
|
*
|
||||||
|
* $manyManyList->add($recordID,["ExtraField"=>"value"]);
|
||||||
|
*
|
||||||
|
*
|
||||||
* @throws InvalidArgumentException
|
* @throws InvalidArgumentException
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user