mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged r46528 from branches/2.1.1-madebyme
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49650 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
675fc1cb88
commit
90c0b9f9fc
@ -1872,6 +1872,15 @@ class DataObject extends Controller implements DataObjectInterface {
|
||||
/**
|
||||
* one-to-many relationship definitions.
|
||||
* This is a map from component name to data type.
|
||||
*
|
||||
* Caution: Because this doesn't define any data structure itself, you should
|
||||
* specify a $has_one relationship on the other end of the relationship.
|
||||
* Also, if the $has_one relationship on the other end has multiple
|
||||
* definitions of this class (e.g. two different relationships to the Member
|
||||
* object), then you need to write a custom accessor (e.g. overload the
|
||||
* function from the key of this array), because sapphire won't know which
|
||||
* to access.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $has_many = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user