Doctrine: entities (fix issues)

This commit is contained in:
Simon Vieille 2016-11-23 20:10:46 +01:00
parent 74d18b0514
commit 9b8fa578c9
2 changed files with 1 additions and 17 deletions

View File

@ -51,22 +51,6 @@ class Book
* targetEntity="Category",
* cascade={"persist"}
* )
* @ORM\JoinTable(
* name="book_has_category",
* joinColumns={
* @ORM\JoinColumn(
* name="book_id",
* referencedColumnName="id"
* )
* },
* inverseJoinColumns={
* @ORM\JoinColumn(
* name="category_id",
* referencedColumnName="id",
* unique=true
* )
* }
* )
*/
private $categories;

View File

@ -32,7 +32,7 @@ class Category
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(
* @ORM\ManyToMany(
* targetEntity="Book",
* mappedBy="categories",
* cascade={"persist"}