47 lines
834 B
PHP
47 lines
834 B
PHP
<?php
|
|
|
|
namespace App\Model\Database\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use App\Model\Database\Entity\Attributes\TId;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
*/
|
|
class Pronunciation extends AbstractEntity
|
|
{
|
|
|
|
use Tid;
|
|
|
|
public function __construct($type,$ipa,$filename=null)
|
|
{
|
|
$this->type = $type;
|
|
$this->ipa = $ipa;
|
|
$this->filename = $filename;
|
|
$this->terms = new \Doctrine\Common\Collections\ArrayCollection();
|
|
}
|
|
|
|
/**
|
|
* @ORM\ManyToMany(targetEntity="Term", mappedBy="pronunciations")
|
|
*/
|
|
private $terms;
|
|
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="PronunciationType", inversedBy="pronunciations")
|
|
*/
|
|
protected $type;
|
|
|
|
/**
|
|
* @ORM\Column(type="string",nullable=true)
|
|
*/
|
|
protected $ipa;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $filename;
|
|
}
|
|
|
|
?>
|