Fix mapping
This commit is contained in:
@@ -35,15 +35,20 @@ class Dictionary extends AbstractEntity
|
|||||||
return $this->translations;
|
return $this->translations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ORM\OnetoMany(targetEntity="\App\Model\Database\Entity\Term", mappedBy="dictionary")
|
||||||
|
* @var Collection&iterable<Term>
|
||||||
|
*/
|
||||||
|
protected Collection $terms;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\ManyToOne(targetEntity="\App\Model\Database\Entity\Language", inversedBy="dictionaries1")
|
* @ORM\ManyToOne(targetEntity="Language", inversedBy="dictionaries1")
|
||||||
* @ORM\JoinColumn(name="lang1_id", referencedColumnName="id")
|
* @ORM\JoinColumn(name="lang1_id", referencedColumnName="id")
|
||||||
*/
|
*/
|
||||||
protected ?Language $lang1;
|
protected ?Language $lang1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\ManyToOne(targetEntity="\App\Model\Database\Entity\Language", inversedBy="dictionaries2")
|
* @ORM\ManyToOne(targetEntity="Language", inversedBy="dictionaries2")
|
||||||
* @ORM\JoinColumn(name="lang2_id", referencedColumnName="id")
|
* @ORM\JoinColumn(name="lang2_id", referencedColumnName="id")
|
||||||
*/
|
*/
|
||||||
protected ?Language $lang2;
|
protected ?Language $lang2;
|
||||||
|
|||||||
@@ -43,13 +43,13 @@ class Language extends AbstractEntity
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* @var Collection&iterable<Dictionary>
|
* @var Collection&iterable<Dictionary>
|
||||||
* @ORM\OneToMany(targetEntity="\App\Model\Database\Entity\Dictionary", mappedBy="language")
|
* @ORM\OneToMany(targetEntity="Dictionary", mappedBy="language")
|
||||||
*/
|
*/
|
||||||
protected Collection $dictionaries1;
|
protected Collection $dictionaries1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @var Collection&iterable<Dictionary>
|
* @var Collection&iterable<Dictionary>
|
||||||
* @ORM\OneToMany(targetEntity="\App\Model\Database\Entity\Dictionary", mappedBy="language")
|
* @ORM\OneToMany(targetEntity="Dictionary", mappedBy="language")
|
||||||
*/
|
*/
|
||||||
protected Collection $dictionaries2;
|
protected Collection $dictionaries2;
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,7 @@ use App\Model\Database\Entity\Attributes\TId;
|
|||||||
/**
|
/**
|
||||||
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\TermRepository")
|
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\TermRepository")
|
||||||
* @ORM\HasLifecycleCallbacks
|
* @ORM\HasLifecycleCallbacks
|
||||||
* @ORM\Table(indexes={@ORM\Index(columns={"string1"}, flags={"fulltext"}),
|
* @ORM\Table(indexes={@ORM\Index(columns={"string1"}, flags={"fulltext"}),@ORM\Index(columns={"string2"}, flags={"fulltext"})})
|
||||||
@ORM\Index(columns={"string2"}, flags={"fulltext"})})
|
|
||||||
*/
|
*/
|
||||||
class Term extends AbstractEntity
|
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;
|
protected $dictionary;
|
||||||
|
|
||||||
|
|||||||
2
log/syslog-2022-01-19.log
Normal file
2
log/syslog-2022-01-19.log
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[2022-01-19T15:39:37.075330+01:00] default.ERROR: Error: Unknown named parameter $mappedBy in /var/www/html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:944 {"exception":"[object] (Error(code: 0): Unknown named parameter $mappedBy at /var/www/html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:944)"} {"file":"/var/www/html/vendor/tracy/tracy/src/Bridges/Psr/PsrToTracyLoggerAdapter.php","line":57,"class":"Tracy\\Bridges\\Psr\\PsrToTracyLoggerAdapter","function":"log","memory_peak_usage":"10 MB","process_id":3638}
|
||||||
|
[2022-01-19T15:42:54.831344+01:00] default.ERROR: Error: Unknown named parameter $mappedBy in /var/www/html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:944 {"exception":"[object] (Error(code: 0): Unknown named parameter $mappedBy at /var/www/html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:944)"} {"file":"/var/www/html/vendor/tracy/tracy/src/Bridges/Psr/PsrToTracyLoggerAdapter.php","line":57,"class":"Tracy\\Bridges\\Psr\\PsrToTracyLoggerAdapter","function":"log","memory_peak_usage":"10 MB","process_id":3663}
|
||||||
Reference in New Issue
Block a user