Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

API CHANGE Deprecated HasManyComplexTableField and ManyManyComplexTab…

…leField, use GridField with GridFieldConfig_RelationEditor instead
  • Loading branch information...
commit feca8390d7e211196242d39b0602f00f6f03ea48 1 parent 55a0fb1
@chillu chillu authored
View
4 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;
View
4 forms/ManyManyComplexTableField.php
@@ -30,6 +30,8 @@
* );
* </code>
*
+ * @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()));
Please sign in to comment.
Something went wrong with that request. Please try again.