diff --git a/core/model/DataObjectDecorator.php b/core/model/DataObjectDecorator.php index 4586c8bf6..938cd4342 100755 --- a/core/model/DataObjectDecorator.php +++ b/core/model/DataObjectDecorator.php @@ -74,6 +74,12 @@ abstract class DataObjectDecorator extends Extension { * * Return a map where the keys are db, has_one, etc, and the values are * additional fields/relations to be defined. + * + * Note: please ensure that the static variable that you are overloading is explicitly defined on the class that + * you are extending. For example, we have added static $has_one = array() to the Member definition, so that we + * can add has_one relationships to Member with decorators. + * + * If you forget to do this, db/build won't create the new relation. Don't blame us, blame PHP! ;-) * * @return array Returns a map where the keys are db, has_one, etc, and * the values are additional fields/relations to be defined.