mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged revisions 50265 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq ........ r50265 | ischommer | 2008-02-27 15:18:45 +1300 (Wed, 27 Feb 2008) | 1 line documentation ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52412 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7d917574f8
commit
109a9da3af
@ -74,6 +74,12 @@ abstract class DataObjectDecorator extends Extension {
|
|||||||
*
|
*
|
||||||
* Return a map where the keys are db, has_one, etc, and the values are
|
* Return a map where the keys are db, has_one, etc, and the values are
|
||||||
* additional fields/relations to be defined.
|
* 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
|
* @return array Returns a map where the keys are db, has_one, etc, and
|
||||||
* the values are additional fields/relations to be defined.
|
* the values are additional fields/relations to be defined.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user