src/Entity/Test.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Test
  6.  *
  7.  * @ORM\Table(name="test")
  8.  * @ORM\Entity
  9.  * @ORM\Entity(repositoryClass="App\Repository\TestRepository")
  10.  */
  11. class Test
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var array
  23.      *
  24.      * @ORM\Column(name="json_array", type="json", nullable=false)
  25.      */
  26.     private $jsonArray;
  27.     /**
  28.      * Get id
  29.      *
  30.      * @return integer
  31.      */
  32.     public function getId()
  33.     {
  34.         return $this->id;
  35.     }
  36.     /**
  37.      * Set jsonArray
  38.      *
  39.      * @param array $jsonArray
  40.      *
  41.      * @return Test
  42.      */
  43.     public function setJsonArray($jsonArray)
  44.     {
  45.         $this->jsonArray $jsonArray;
  46.         return $this;
  47.     }
  48.     /**
  49.      * Get jsonArray
  50.      *
  51.      * @return array
  52.      */
  53.     public function getJsonArray()
  54.     {
  55.         return $this->jsonArray;
  56.     }
  57. }