The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Fixed Document <-> Group relationship mapping

master
Polonkai Gergely 11 years ago
parent b173b9a9bb
commit c44a8bc144
  1. 7
      src/KekRozsak/FrontBundle/Entity/Document.php
  2. 7
      src/KekRozsak/FrontBundle/Entity/Group.php

@ -182,12 +182,7 @@ class Document
/**
* @var Doctrine\Common\Collections\ArrayCollection $groups
* @ORM\ManyToMany(targetEntity="KekRozsak\FrontBundle\Entity\Group")
* @ORM\JoinTable(name="group_document", joinColumns={
* @ORM\JoinColumn(name="document_id", referencedColumnName="id"),
* }, inverseJoinColumns={
* @ORM\JoinColumn(name="group_id", referencedColumnName="id")
* })
* @ORM\ManyToMany(targetEntity="KekRozsak\FrontBundle\Entity\Group", mappedBy="documents")
*/
protected $groups;

@ -305,7 +305,12 @@ class Group
/**
* @var Doctrine\Common\Collections\ArrayCollection $documents
* @ORM\ManyToMany(targetEntity="Document")
* @ORM\ManyToMany(targetEntity="Document", inversedBy="groups")
* @ORM\JoinTable(name="group_document", inverseJoinColumns={
* @ORM\JoinColumn(name="document_id", referencedColumnName="id"),
* }, joinColumns={
* @ORM\JoinColumn(name="group_id", referencedColumnName="id")
* })
*/
protected $documents;

Loading…
Cancel
Save