Doctrine: entities (fix issues)
This commit is contained in:
parent
74d18b0514
commit
9b8fa578c9
|
@ -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;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ class Category
|
|||
/**
|
||||
* @var \Doctrine\Common\Collections\Collection
|
||||
*
|
||||
* @ORM\OneToMany(
|
||||
* @ORM\ManyToMany(
|
||||
* targetEntity="Book",
|
||||
* mappedBy="categories",
|
||||
* cascade={"persist"}
|
||||
|
|
Loading…
Reference in a new issue