Fixing property

This commit is contained in:
2022-01-26 12:29:10 +01:00
parent c69bf82ecc
commit 04bc79b36d
7 changed files with 40 additions and 12 deletions

View File

@@ -11,6 +11,13 @@ use Doctrine\Common\Collections\Collection;
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\DictionaryRepository") * @ORM\Entity(repositoryClass="App\Model\Database\Repository\DictionaryRepository")
* @ORM\Table(name="`dictionary`") * @ORM\Table(name="`dictionary`")
* @ORM\HasLifecycleCallbacks * @ORM\HasLifecycleCallbacks
*
* @property int $id
* @property String $name
* @property String $fullname
* @property Term $terms
* @property Language $lang1
* @property Language $lang2
*/ */
class Dictionary extends AbstractEntity class Dictionary extends AbstractEntity
{ {

View File

@@ -9,6 +9,13 @@ use Doctrine\Common\Collections\Collection;
/** /**
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\LanguageRepository") * @ORM\Entity(repositoryClass="App\Model\Database\Repository\LanguageRepository")
* @ORM\HasLifecycleCallbacks * @ORM\HasLifecycleCallbacks
*
* @property int $id
* @property String $name
* @property String $shortName
* @property Dictionary $dictionaries1
* @property Dictionary $dictionaries2
*
*/ */
class Language extends AbstractEntity class Language extends AbstractEntity
{ {

View File

@@ -8,6 +8,12 @@ use App\Model\Database\Entity\Attributes\TId;
/** /**
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\PronunciationRepository") * @ORM\Entity(repositoryClass="App\Model\Database\Repository\PronunciationRepository")
* @ORM\HasLifecycleCallbacks * @ORM\HasLifecycleCallbacks
*
* @property int $id
* @property Term $terms
* @property PronunciationType $type
* @property String $ipa
* @property String $filename
*/ */
class Pronunciation extends AbstractEntity class Pronunciation extends AbstractEntity
{ {

View File

@@ -8,6 +8,10 @@ use App\Model\Database\Entity\Attributes\Tid;
/** /**
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\PronunciationTypeRepository") * @ORM\Entity(repositoryClass="App\Model\Database\Repository\PronunciationTypeRepository")
* @ORM\HasLifecycleCallbacks * @ORM\HasLifecycleCallbacks
*
* @property int $id
* @property String $name
* @property String $fullName
*/ */
class PronunciationType extends AbstractEntity class PronunciationType extends AbstractEntity
{ {

View File

@@ -8,6 +8,12 @@ use App\Model\Database\Entity\Attributes\TId;
/** /**
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\TermFlagRepository") * @ORM\Entity(repositoryClass="App\Model\Database\Repository\TermFlagRepository")
* @ORM\HasLifecycleCallbacks * @ORM\HasLifecycleCallbacks
*
* @property int $id
* @property WordClass $class
* @property Language $language
* @property String $code
* @property String $description
*/ */
class TermFlag extends AbstractEntity class TermFlag extends AbstractEntity
{ {

View File

@@ -10,6 +10,11 @@ use App\Model\Database\Entity\Attributes\TId;
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\TranslationRepository") * @ORM\Entity(repositoryClass="App\Model\Database\Repository\TranslationRepository")
* @ORM\Table(name="`translation`") * @ORM\Table(name="`translation`")
* @ORM\HasLifecycleCallbacks * @ORM\HasLifecycleCallbacks
*
* @property Dictionary $dictionary
* @property Language $lang1
* @property Language $lang2
* @property int $direction
*/ */
class Translation extends AbstractEntity class Translation extends AbstractEntity
{ {

View File

@@ -8,6 +8,10 @@ use App\Model\Database\Entity\Attributes\TId;
/** /**
* @ORM\Entity(repositoryClass="App\Model\Database\Repository\WordClassRepository") * @ORM\Entity(repositoryClass="App\Model\Database\Repository\WordClassRepository")
* @ORM\HasLifecycleCallbacks * @ORM\HasLifecycleCallbacks
*
* @property int $id
* @property String $name
*
*/ */
class WordClass extends AbstractEntity class WordClass extends AbstractEntity
{ {
@@ -20,17 +24,6 @@ class WordClass extends AbstractEntity
$this->name = $name; $this->name = $name;
} }
public function setId($id)
{
$this->id = $id;
return $id;
}
public function getId()
{
return $this->id;
}
/** /**
* @ORM\Column(type="string") * @ORM\Column(type="string")
*/ */