Khandaker Toihidul Islam
Software Engineer
Backend : PHP | Mysql | Symfony | CakePhp | Wordpress | Drupal
Frontend : Node js | Vue js | React Js | Javascript | HTML | CSS | Bootstrap
Tools , Server : Nginx | Apache | Git | Jenkins | Jira | Asana | Silenium | Spira

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

Your email address will not be published. Required fields are marked *