Hi Tanya,
I tried the below line to update a boolean field (checkbox) for an entity with TRUE or FALSE values but it does not update.
I tried the below line to update a boolean field (checkbox) for an entity with TRUE or FALSE values but it does not update.
PHP Code:
$entity->set('fieldName', true);
$this->getEntityManager()->getRepository('Entity')->saveEntity($entity);
Comment