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:
Matt Peel 2008-02-17 22:21:03 +00:00
parent 675fc1cb88
commit 90c0b9f9fc

View File

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