[Doctrine] #1673: Direct call of Doctrine_Parser_Xml::arrayToXml() is impossible due of $this useing inside

8 views
Skip to first unread message

Doctrine

unread,
Nov 18, 2008, 2:05:58 AM11/18/08
to doctri...@googlegroups.com
#1673: Direct call of Doctrine_Parser_Xml::arrayToXml() is impossible due of $this
useing inside
-----------------------------------+----------------------------------------
Reporter: test157 | Owner: jwage
Type: defect | Status: new
Priority: major | Milestone:
Component: Other | Version: 1.0.3
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
Hello,

It's impossible to call directly Doctrine_Parser_Xml::arrayToXml();
without object creating, for some reason you are useing $this statement
inside when it's not really needed. Isn't it?

So maybe better to change parser functions to static? As it done for
Doctrine_Parser::dump(array(), 'xml');

--
Ticket URL: <http://trac.doctrine-project.org/ticket/1673>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper

Doctrine

unread,
Nov 18, 2008, 2:06:52 AM11/18/08
to doctri...@googlegroups.com
#1673: Direct call of Doctrine_Parser_Xml::arrayToXml() is impossible due of $this
useing inside
--------------------------+-------------------------------------------------
Reporter: test157 | Owner: jwage
Type: enhancement | Status: new
Priority: major | Milestone:
Component: Other | Version: 1.0.3
Resolution: | Keywords:
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
--------------------------+-------------------------------------------------
Changes (by test157):

* type: defect => enhancement

--
Ticket URL: <http://trac.doctrine-project.org/ticket/1673#comment:1>

Doctrine

unread,
Nov 20, 2008, 3:47:47 PM11/20/08
to doctri...@googlegroups.com
#1673: Direct call of Doctrine_Parser_Xml::arrayToXml() is impossible due of $this
useing inside
--------------------------+-------------------------------------------------
Reporter: test157 | Owner: jwage
Type: enhancement | Status: new
Priority: major | Milestone: 1.1.0
Component: Other | Version: 1.0.3
Resolution: | Keywords:
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
--------------------------+-------------------------------------------------
Changes (by jwage):

* milestone: => 1.1.0

--
Ticket URL: <http://trac.doctrine-project.org/ticket/1673#comment:2>

Doctrine

unread,
Dec 1, 2008, 6:00:46 PM12/1/08
to doctri...@googlegroups.com
#1673: Direct call of Doctrine_Parser_Xml::arrayToXml() is impossible due of $this
useing inside
-----------------------------------+----------------------------------------
Reporter: test157 | Owner: jwage
Type: enhancement | Status: new
Priority: major | Milestone: 1.2.0
Component: Other | Version: 1.0.3
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
Changes (by jwage):

* milestone: 1.1.0 => 1.2.0


--
Ticket URL: <http://trac.doctrine-project.org/ticket/1673#comment:3>

Reply all
Reply to author
Forward
0 new messages