Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5c8209

Browse files
committed
#1573 removing unused API
1 parent 4148220 commit d5c8209

2 files changed

Lines changed: 1 addition & 26 deletions

File tree

tests/Doctrine/Tests/Models/VersionedOneToMany/Article.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Doctrine\Tests\Models\VersionedOneToMany;
44

5-
use Doctrine\Common\Collections\ArrayCollection;
6-
75
/**
86
* @Entity
97
* @Table(name="article")
@@ -23,7 +21,7 @@ class Article
2321
public $name;
2422

2523
/**
26-
* @ManyToOne(targetEntity="Category", inversedBy="category", cascade={"merge", "persist"})
24+
* @ManyToOne(targetEntity="Category", cascade={"merge", "persist"})
2725
*/
2826
public $category;
2927

@@ -34,12 +32,4 @@ class Article
3432
* @Version
3533
*/
3634
public $version;
37-
38-
/**
39-
* Category constructor.
40-
*/
41-
public function __construct()
42-
{
43-
$this->tags = new ArrayCollection();
44-
}
4535
}

tests/Doctrine/Tests/Models/VersionedOneToMany/Category.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Doctrine\Tests\Models\VersionedOneToMany;
44

5-
use Doctrine\Common\Collections\ArrayCollection;
6-
75
/**
86
* @Entity
97
* @Table(name="category")
@@ -17,11 +15,6 @@ class Category
1715
*/
1816
public $id;
1917

20-
/**
21-
* @OneToMany(targetEntity="Article", mappedBy="category", cascade={"merge", "persist"})
22-
*/
23-
public $articles;
24-
2518
/**
2619
* @Column(name="name")
2720
*/
@@ -34,12 +27,4 @@ class Category
3427
* @Version
3528
*/
3629
public $version;
37-
38-
/**
39-
* Category constructor.
40-
*/
41-
public function __construct()
42-
{
43-
$this->articles = new ArrayCollection();
44-
}
4530
}

0 commit comments

Comments
 (0)