Ability to assign documents to groups.

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck)
2012-09-13 12:08:29 +02:00
parent a8f1f85573
commit 0f112feabe
3 changed files with 17 additions and 12 deletions

View File

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