Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 6b2c4b9

Browse files
authored
Merge pull request #265 from symfony-cmf/remove_deprecations
Removed deprecated features
2 parents ba4f85b + 10f1ccd commit 6b2c4b9

14 files changed

+50
-39
lines changed

Admin/MenuNodeAdmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function configureFormFields(FormMapper $formMapper)
4343
{
4444
$formMapper
4545
->with('form.group_general')
46-
->add('parent', TreeModelType::class, array(
46+
->add('parentDocument', TreeModelType::class, array(
4747
'root_node' => $this->menuRoot,
4848
'choice_list' => array(),
4949
'select_root_node' => true,

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Changelog
22
=========
33

4-
* **2019-06-18**: [BC BREAK] Removed all `*.class` parameters.
4+
* **2016-06-19**: [BC BREAK] Removed `setParent()`/`getParent()` from the model `MenuNode`.
5+
* **2016-06-18**: [BC BREAK] Removed all `*.class` parameters.
56
* **2016-05-25**: Use "auto" for publish workflow enabled flag. If auto and
67
CmfCoreBundle is not instantiated, publish workflow integration is not enabled.
78

Model/MenuNode.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,6 @@ public function getParentObject()
9696
return $this->parent;
9797
}
9898

99-
/**
100-
* @deprecated use setParentObject instead.
101-
*/
102-
public function setParent($parent)
103-
{
104-
return $this->setParentObject($parent);
105-
}
106-
107-
/**
108-
* @deprecated use getParentObject instead.
109-
*/
110-
public function getParent()
111-
{
112-
return $this->getParentObject();
113-
}
114-
11599
/**
116100
* @return string the loaded locale of this menu node
117101
*/

Resources/translations/CmfMenuBundle.cs.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<source>form.label_children</source>
7979
<target>Položky</target>
8080
</trans-unit>
81-
<trans-unit id="form.label_parent">
82-
<source>form.label_parent</source>
81+
<trans-unit id="form.label_parentDocument">
82+
<source>form.label_parentDocument</source>
8383
<target>Menu</target>
8484
</trans-unit>
8585
<trans-unit id="form.label_name">

Resources/translations/CmfMenuBundle.de.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<source>form.label_children</source>
7979
<target>Einträge</target>
8080
</trans-unit>
81-
<trans-unit id="form.label_parent">
82-
<source>form.label_parent</source>
81+
<trans-unit id="form.label_parentDocument">
82+
<source>form.label_parentDocument</source>
8383
<target>Menüs</target>
8484
</trans-unit>
8585
<trans-unit id="form.label_name">

Resources/translations/CmfMenuBundle.en.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<source>form.label_children</source>
7979
<target>Items</target>
8080
</trans-unit>
81-
<trans-unit id="form.label_parent">
82-
<source>form.label_parent</source>
81+
<trans-unit id="form.label_parentDocument">
82+
<source>form.label_parentDocument</source>
8383
<target>Menu</target>
8484
</trans-unit>
8585
<trans-unit id="form.label_name">

Resources/translations/CmfMenuBundle.fr.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<source>form.label_children</source>
7979
<target>Éléments</target>
8080
</trans-unit>
81-
<trans-unit id="form.label_parent">
82-
<source>form.label_parent</source>
81+
<trans-unit id="form.label_parentDocument">
82+
<source>form.label_parentDocument</source>
8383
<target>Menus</target>
8484
</trans-unit>
8585
<trans-unit id="form.label_name">

Resources/translations/CmfMenuBundle.it.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<source>form.label_children</source>
7979
<target>Elementi</target>
8080
</trans-unit>
81-
<trans-unit id="form.label_parent">
82-
<source>form.label_parent</source>
81+
<trans-unit id="form.label_parentDocument">
82+
<source>form.label_parentDocument</source>
8383
<target>Genitore</target>
8484
</trans-unit>
8585
<trans-unit id="form.label_name">

Resources/translations/CmfMenuBundle.nl.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<source>form.label_children</source>
7979
<target>Items</target>
8080
</trans-unit>
81-
<trans-unit id="form.label_parent">
82-
<source>form.label_parent</source>
81+
<trans-unit id="form.label_parentDocument">
82+
<source>form.label_parentDocument</source>
8383
<target>Menu</target>
8484
</trans-unit>
8585
<trans-unit id="form.label_name">

Resources/translations/CmfMenuBundle.sk.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<source>form.label_children</source>
7979
<target>Položky</target>
8080
</trans-unit>
81-
<trans-unit id="form.label_parent">
82-
<source>form.label_parent</source>
81+
<trans-unit id="form.label_parentDocument">
82+
<source>form.label_parentDocument</source>
8383
<target>Menu</target>
8484
</trans-unit>
8585
<trans-unit id="form.label_name">

0 commit comments

Comments
 (0)