1
0
mirror of synced 2025-02-02 21:41:45 +03:00

#1573 removing unused API

This commit is contained in:
Marco Pivetta 2015-12-11 19:59:08 +01:00
parent 4148220f9c
commit d5c82094df
2 changed files with 1 additions and 26 deletions

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\Models\VersionedOneToMany; namespace Doctrine\Tests\Models\VersionedOneToMany;
use Doctrine\Common\Collections\ArrayCollection;
/** /**
* @Entity * @Entity
* @Table(name="article") * @Table(name="article")
@ -23,7 +21,7 @@ class Article
public $name; public $name;
/** /**
* @ManyToOne(targetEntity="Category", inversedBy="category", cascade={"merge", "persist"}) * @ManyToOne(targetEntity="Category", cascade={"merge", "persist"})
*/ */
public $category; public $category;
@ -34,12 +32,4 @@ class Article
* @Version * @Version
*/ */
public $version; public $version;
/**
* Category constructor.
*/
public function __construct()
{
$this->tags = new ArrayCollection();
}
} }

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\Models\VersionedOneToMany; namespace Doctrine\Tests\Models\VersionedOneToMany;
use Doctrine\Common\Collections\ArrayCollection;
/** /**
* @Entity * @Entity
* @Table(name="category") * @Table(name="category")
@ -17,11 +15,6 @@ class Category
*/ */
public $id; public $id;
/**
* @OneToMany(targetEntity="Article", mappedBy="category", cascade={"merge", "persist"})
*/
public $articles;
/** /**
* @Column(name="name") * @Column(name="name")
*/ */
@ -34,12 +27,4 @@ class Category
* @Version * @Version
*/ */
public $version; public $version;
/**
* Category constructor.
*/
public function __construct()
{
$this->articles = new ArrayCollection();
}
} }