From 0c0d3a1a7c1d4d54dca8b80951aa948ec7784126 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 17 Mar 2015 23:14:29 +0000 Subject: [PATCH] #1316 - removing unused API from stub class --- .../Models/NonPublicSchemaJoins/User.php | 55 +++---------------- 1 file changed, 8 insertions(+), 47 deletions(-) diff --git a/tests/Doctrine/Tests/Models/NonPublicSchemaJoins/User.php b/tests/Doctrine/Tests/Models/NonPublicSchemaJoins/User.php index 39b78adca..1c40a5e43 100644 --- a/tests/Doctrine/Tests/Models/NonPublicSchemaJoins/User.php +++ b/tests/Doctrine/Tests/Models/NonPublicSchemaJoins/User.php @@ -10,70 +10,31 @@ namespace Doctrine\Tests\Models\NonPublicSchemaJoins; */ class User { + const CLASSNAME = __CLASS__; + /** * @Column(type="integer") * @Id */ - private $id; + public $id; /** * @ManyToMany(targetEntity="Doctrine\Tests\Models\NonPublicSchemaJoins\User", inversedBy="authors") - * @JoinTable(name="author_reader", schema="readers", + * @JoinTable( + * name="author_reader", + * schema="readers", * joinColumns={@JoinColumn(name="author_id", referencedColumnName="id")}, * inverseJoinColumns={@JoinColumn(name="reader_id", referencedColumnName="id")} * ) * * @var User[] */ - private $readers; + public $readers; /** * @ManyToMany(targetEntity="Doctrine\Tests\Models\NonPublicSchemaJoins\User", mappedBy="readers") * * @var User[] */ - private $authors; - - public function setId($id) - { - $this->id = $id; - } - - /** - * @return User[] - */ - public function getReaders() - { - return $this->readers; - } - - /** - * @param User[] $readers - * @return User - */ - public function setReaders($readers) - { - $this->readers = $readers; - - return $this; - } - - /** - * @return User[] - */ - public function getAuthors() - { - return $this->authors; - } - - /** - * @param User[] $authors - * @return User - */ - public function setAuthors($authors) - { - $this->authors = $authors; - - return $this; - } + public $authors; }