From 90c0b9f9fcc6516a20ae4c3a580f70efb5e28dfe Mon Sep 17 00:00:00 2001 From: Matt Peel Date: Sun, 17 Feb 2008 22:21:03 +0000 Subject: [PATCH] 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 --- core/model/DataObject.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index 0d8a1b33d..e7099b349 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -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;