From feca8390d7e211196242d39b0602f00f6f03ea48 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 7 Mar 2012 12:21:25 +0100 Subject: [PATCH] API CHANGE Deprecated HasManyComplexTableField and ManyManyComplexTableField, use GridField with GridFieldConfig_RelationEditor instead --- forms/HasManyComplexTableField.php | 4 ++++ forms/ManyManyComplexTableField.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/forms/HasManyComplexTableField.php b/forms/HasManyComplexTableField.php index acc651500..625734585 100644 --- a/forms/HasManyComplexTableField.php +++ b/forms/HasManyComplexTableField.php @@ -27,6 +27,8 @@ * * @see http://doc.silverstripe.org/tutorial/5-dataobject-relationship-management * + * @deprecated 3.0 Use GridField with GridFieldConfig_RelationEditor + * * @package forms * @subpackage fields-relational */ @@ -48,6 +50,8 @@ class HasManyComplexTableField extends ComplexTableField { function __construct($controller, $name, $sourceClass, $fieldList = null, $detailFormFields = null, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") { parent::__construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $sourceFilter, $sourceSort, $sourceJoin); + + Deprecation::notice('3.0', 'Use GridField with GridFieldConfig_RelationEditor'); $this->Markable = true; diff --git a/forms/ManyManyComplexTableField.php b/forms/ManyManyComplexTableField.php index ecf295592..1c9600c08 100644 --- a/forms/ManyManyComplexTableField.php +++ b/forms/ManyManyComplexTableField.php @@ -30,6 +30,8 @@ * ); * * + * @deprecated 3.0 Use GridField with GridFieldConfig_RelationEditor + * * @package forms * @subpackage fields-relational */ @@ -41,6 +43,8 @@ class ManyManyComplexTableField extends HasManyComplexTableField { function __construct($controller, $name, $sourceClass, $fieldList = null, $detailFormFields = null, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") { + Deprecation::notice('3.0', 'Use GridField with GridFieldConfig_RelationEditor'); + parent::__construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $sourceFilter, $sourceSort, $sourceJoin); $classes = array_reverse(ClassInfo::ancestry($this->controllerClass()));