for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity]
#[UniqueEntity(fields: ['key'])]
class Setting {
#[ORM\Id]
#[ORM\Column(name: 'key', type: 'string', unique: true)]
#[Assert\NotBlank]
private ?string $key = null;
/**
* @var mixed
*/
#[ORM\Column(type: 'object')]
private $value = null;
public function getKey(): string {
return $this->key;
return $this->key
null
string
}
public function setKey(string $key): Setting {
$this->key = $key;
return $this;
* @return mixed
public function getValue() {
return $this->value;
* @return Setting
public function setValue(mixed $value) {
$this->value = $value;