Khandaker Toihidul Islam
Front-end Developer
React Js | Javascript | HTML | CSS | Bootstrap | Wordpress | PHP | Mysql

The boolean entity in Symfony 4

    /**
     * @var boolean
     *
     * @ORM\Column(type="boolean")
     */
    private $active = 0;

    public function setActive(?bool $active): self
    {
         $this->active = $active ;
         return $this;
    }


    public function getActive(): ?bool
    {
        return $this->active;
    }

You may also like...

Leave a Reply