From 41235f61defdaa7cb997f72d0489264e9c001753 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 11 Dec 2015 19:59:08 +0100 Subject: [PATCH] #1573 removing unused API --- .../Tests/Models/VersionedOneToMany/Article.php | 12 +----------- .../Tests/Models/VersionedOneToMany/Category.php | 15 --------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/tests/Doctrine/Tests/Models/VersionedOneToMany/Article.php b/tests/Doctrine/Tests/Models/VersionedOneToMany/Article.php index bd0cfdf48..919480162 100644 --- a/tests/Doctrine/Tests/Models/VersionedOneToMany/Article.php +++ b/tests/Doctrine/Tests/Models/VersionedOneToMany/Article.php @@ -2,8 +2,6 @@ namespace Doctrine\Tests\Models\VersionedOneToMany; -use Doctrine\Common\Collections\ArrayCollection; - /** * @Entity * @Table(name="article") @@ -23,7 +21,7 @@ class Article public $name; /** - * @ManyToOne(targetEntity="Category", inversedBy="category", cascade={"merge", "persist"}) + * @ManyToOne(targetEntity="Category", cascade={"merge", "persist"}) */ public $category; @@ -34,12 +32,4 @@ class Article * @Version */ public $version; - - /** - * Category constructor. - */ - public function __construct() - { - $this->tags = new ArrayCollection(); - } } diff --git a/tests/Doctrine/Tests/Models/VersionedOneToMany/Category.php b/tests/Doctrine/Tests/Models/VersionedOneToMany/Category.php index d4dbdefbb..f5d293651 100644 --- a/tests/Doctrine/Tests/Models/VersionedOneToMany/Category.php +++ b/tests/Doctrine/Tests/Models/VersionedOneToMany/Category.php @@ -2,8 +2,6 @@ namespace Doctrine\Tests\Models\VersionedOneToMany; -use Doctrine\Common\Collections\ArrayCollection; - /** * @Entity * @Table(name="category") @@ -17,11 +15,6 @@ class Category */ public $id; - /** - * @OneToMany(targetEntity="Article", mappedBy="category", cascade={"merge", "persist"}) - */ - public $articles; - /** * @Column(name="name") */ @@ -34,12 +27,4 @@ class Category * @Version */ public $version; - - /** - * Category constructor. - */ - public function __construct() - { - $this->articles = new ArrayCollection(); - } }