src/Entity/Similar/SimilarPersons.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Similar;
  3. use App\Repository\Similar\SimilarPersonsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SimilarPersonsRepository::class)
  7.  * @ORM\Table(name="similar_persons")
  8.  */
  9. class SimilarPersons
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="array")
  19.      */
  20.     private $persons = [];
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getPersons(): ?array
  26.     {
  27.         return $this->persons;
  28.     }
  29.     public function setPersons(array $persons): self
  30.     {
  31.         $this->persons $persons;
  32.         return $this;
  33.     }
  34. }