mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Deprecated HasManyComplexTableField and ManyManyComplexTableField, use GridField with GridFieldConfig_RelationEditor instead
This commit is contained in:
parent
55a0fb18e4
commit
feca8390d7
@ -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()) {
|
||||||
|
@ -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()));
|
||||||
|
Loading…
Reference in New Issue
Block a user