src/Entity/Scholar/Achievement.php line 17
<?php
namespace App\Entity\Scholar;
use App\Entity\Traits\UserCreatedInterface;
use App\Entity\Traits\UserUpdatedInterface;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* Class Competence
* @package App\Entity\Scholar
*/
#[ORM\Table(name: 'scholar_achievement')]
#[ORM\Entity(repositoryClass: 'App\Repository\Scholar\AchievementRepository')]
#[ORM\HasLifecycleCallbacks]
class Achievement implements UserCreatedInterface, UserUpdatedInterface
{
use \App\Entity\Traits\TrackerFields;
use \App\Entity\Traits\ActiveTrait;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string')]
private $caption;
/**
* @var Collection|Profile[]
*/
#[ORM\ManyToMany(targetEntity: 'App\Entity\Scholar\Profile', mappedBy: 'achievements')]
private $scholar_profiles;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getCaption()
{
return $this->caption;
}
/**
* @param mixed $caption
*/
public function setCaption($caption): void
{
$this->caption = $caption;
}
/**
* @return Profile[]|Collection
*/
public function getScholarProfiles()
{
return $this->scholar_profiles;
}
/**
* @param Profile[]|Collection $scholar_profiles
*/
public function setScholarProfiles($scholar_profiles): void
{
$this->scholar_profiles = $scholar_profiles;
}
}