Added document view support

This commit is contained in:
Polonkai Gergely
2012-07-17 09:21:33 +02:00
parent aa453242df
commit b173b9a9bb
5 changed files with 65 additions and 3 deletions

View File

@@ -182,7 +182,12 @@ class Document
/**
* @var Doctrine\Common\Collections\ArrayCollection $groups
* @ORM\ManyToMany(targetEntity="KekRozsak\FrontBundle\Entity\Group", mappedBy="documents")
* @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")
* })
*/
protected $groups;