Skip to content

Commit 5d53206

Browse files
committed
improved changelog
1 parent 09a7472 commit 5d53206

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

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

4-
* **2016-12-02**: [BC BREAK] Move all sonata related code
4+
* **2016-12-02**: [BC BREAK] Moved all sonata related code to sonata-phpcr-admin-integration-bundle
55
* **2016-10-10**: [ORM] Add option to use custom Route class in ORM
66
* **2016-06-18**: [BC BREAK] Removed all `*.class` parameters.
77
* **2016-06-18**: [BC BREAK] Removed the `cmf_routing.dynamic.persistence.phpcr.route_basepath`

src/Doctrine/Phpcr/RedirectRoute.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public function getParentDocument()
100100
*/
101101
public function setParent($parent)
102102
{
103+
@trigger_error('The '.__METHOD__.'() method is deprecated and will be removed in version 3.0. Use setParentDocument() instead.', E_USER_DEPRECATED);
104+
103105
return $this->setParentDocument($parent);
104106
}
105107

@@ -109,6 +111,8 @@ public function setParent($parent)
109111
*/
110112
public function getParent()
111113
{
114+
@trigger_error('The '.__METHOD__.'() method is deprecated and will be removed in version 3.0. Use getParentDocument() instead.', E_USER_DEPRECATED);
115+
112116
return $this->getParentDocument();
113117
}
114118

src/Doctrine/Phpcr/Route.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public function getParentDocument()
110110
*/
111111
public function setParent($parent)
112112
{
113+
@trigger_error('The '.__METHOD__.'() method is deprecated and will be removed in version 3.0. Use setParentDocument() instead.', E_USER_DEPRECATED);
114+
113115
return $this->setParentDocument($parent);
114116
}
115117

@@ -119,6 +121,8 @@ public function setParent($parent)
119121
*/
120122
public function getParent()
121123
{
124+
@trigger_error('The '.__METHOD__.'() method is deprecated and will be removed in version 3.0. Use getParentDocument() instead.', E_USER_DEPRECATED);
125+
122126
return $this->getParentDocument();
123127
}
124128

0 commit comments

Comments
 (0)