Skip to content
Snippets Groups Projects
Commit 94bdd425 authored by Pierre Fleutot's avatar Pierre Fleutot
Browse files

Fix mapping côté inverse ChatMessage et Entry

parent 9c474912
No related branches found
No related tags found
No related merge requests found
......@@ -41,18 +41,18 @@ class ChatMessage
private $updatedAt;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="comments")
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="chatMessages")
* @Groups({"comment:read"})
*/
private $createdBy;
/**
* @ORM\ManyToOne(targetEntity=Lexicon::class, inversedBy="comments")
* @ORM\ManyToOne(targetEntity=Lexicon::class, inversedBy="chatMessages")
*/
private $lexicon;
/**
* @ORM\ManyToOne(targetEntity=Entry::class, inversedBy="comments")
* @ORM\ManyToOne(targetEntity=Entry::class, inversedBy="chatMessages")
*/
private $entry;
......
......@@ -90,7 +90,7 @@ class Entry
public $addingOrder;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="createdEntries")
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="entries")
*/
private $createdBy;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment