Fix mapping

This commit is contained in:
2022-01-20 16:50:10 +01:00
parent 265470f771
commit 966b9c19b7
4 changed files with 13 additions and 7 deletions

View File

@@ -8,8 +8,7 @@ use App\Model\Database\Entity\Attributes\TId;
/**
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\TermRepository")
* @ORM\HasLifecycleCallbacks
* @ORM\Table(indexes={@ORM\Index(columns={"string1"}, flags={"fulltext"}),
@ORM\Index(columns={"string2"}, flags={"fulltext"})})
* @ORM\Table(indexes={@ORM\Index(columns={"string1"}, flags={"fulltext"}),@ORM\Index(columns={"string2"}, flags={"fulltext"})})
*/
class Term extends AbstractEntity
{
@@ -23,7 +22,7 @@ class Term extends AbstractEntity
}
/**
* @ORM\ManyToOne(targetEntity="Dictionary", inversedBy="fullDict",cascade={"persist", "remove" })
* @ORM\ManyToOne(targetEntity="\App\Model\Database\Entity\Dictionary", inversedBy="terms",cascade={"persist", "remove" })
*/
protected $dictionary;