You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.6 KiB
84 lines
1.6 KiB
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CoreBundle\Entity;
|
|
|
|
use Chamilo\CoreBundle\Traits\UserTrait;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Gedmo\Timestampable\Traits\TimestampableEntity;
|
|
|
|
/**
|
|
* Class ExtraFieldSavedSearch.
|
|
*
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="extra_field_saved_search")
|
|
*/
|
|
class ExtraFieldSavedSearch
|
|
{
|
|
use TimestampableEntity;
|
|
use UserTrait;
|
|
|
|
/**
|
|
* @ORM\Column(name="id", type="integer", nullable=false)
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue
|
|
*/
|
|
protected int $id;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\ExtraField")
|
|
* @ORM\JoinColumn(name="field_id", referencedColumnName="id")
|
|
*/
|
|
protected ExtraField $field;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User")
|
|
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
|
|
*/
|
|
protected User $user;
|
|
|
|
/**
|
|
* @ORM\Column(name="value", type="array", nullable=true, unique=false)
|
|
*/
|
|
protected ?array $value = [];
|
|
|
|
/**
|
|
* Get id.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getField(): ExtraField
|
|
{
|
|
return $this->field;
|
|
}
|
|
|
|
public function setField(ExtraField $field): self
|
|
{
|
|
$this->field = $field;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
public function setValue(array $value): self
|
|
{
|
|
$this->value = $value;
|
|
|
|
return $this;
|
|
}
|
|
}
|
|
|