API CHANGE Deprecated HasManyComplexTableField and ManyManyComplexTableField, use GridField with GridFieldConfig_RelationEditor instead

This commit is contained in:
Ingo Schommer 2012-03-07 12:21:25 +01:00
parent 55a0fb18e4
commit feca8390d7
2 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,8 @@
* *
* @see http://doc.silverstripe.org/tutorial/5-dataobject-relationship-management * @see http://doc.silverstripe.org/tutorial/5-dataobject-relationship-management
* *
* @deprecated 3.0 Use GridField with GridFieldConfig_RelationEditor
*
* @package forms * @package forms
* @subpackage fields-relational * @subpackage fields-relational
*/ */
@ -49,6 +51,8 @@ class HasManyComplexTableField extends ComplexTableField {
function __construct($controller, $name, $sourceClass, $fieldList = null, $detailFormFields = null, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") { function __construct($controller, $name, $sourceClass, $fieldList = null, $detailFormFields = null, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") {
parent::__construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $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; $this->Markable = true;
if($controllerClass = $this->controllerClass()) { if($controllerClass = $this->controllerClass()) {

View File

@ -30,6 +30,8 @@
* ); * );
* </code> * </code>
* *
* @deprecated 3.0 Use GridField with GridFieldConfig_RelationEditor
*
* @package forms * @package forms
* @subpackage fields-relational * @subpackage fields-relational
*/ */
@ -41,6 +43,8 @@ class ManyManyComplexTableField extends HasManyComplexTableField {
function __construct($controller, $name, $sourceClass, $fieldList = null, $detailFormFields = null, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") { 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); parent::__construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $sourceFilter, $sourceSort, $sourceJoin);
$classes = array_reverse(ClassInfo::ancestry($this->controllerClass())); $classes = array_reverse(ClassInfo::ancestry($this->controllerClass()));