lib/Persistence/Doctrine/QueryHandler/LayoutResolverQueryHandler.php
public function updateCondition(Condition $condition): void
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->update('ngbm_rule_condition')
            ->set('rule_id', ':rule_id')
            ->set('type', ':type')
            ->set('value', ':value')
            ->where(
                $query->expr()->eq('id', ':id')
            )
            ->setParameter('id', $condition->id, Type::INTEGER)
            ->setParameter('rule_id', $condition->ruleId, Type::INTEGER)
            ->setParameter('type', $condition->type, Type::STRING)
            ->setParameter('value', json_encode($condition->value), Type::STRING);

        $this->applyStatusCondition($query, $condition->status);

        $query->execute();
    }
public function updateCondition(Condition $condition): void
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->update('ngbm_rule_condition')
            ->set('rule_id', ':rule_id')
            ->set('type', ':type')
            ->set('value', ':value')
            ->where(
                $query->expr()->eq('id', ':id')
            )
            ->setParameter('id', $condition->id, Type::INTEGER)
            ->setParameter('rule_id', $condition->ruleId, Type::INTEGER)
            ->setParameter('type', $condition->type, Type::STRING)
            ->setParameter('value', json_encode($condition->value), Type::STRING);

        $this->applyStatusCondition($query, $condition->status);

        $query->execute();
    }
public function updateCondition ( Condition $ condition ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> update ( 'ngbm_rule_condition' ) -> set ( 'rule_id' , ':rule_id' ) -> set ( 'type' , ':type' ) -> set ( 'value' , ':value' ) -> where ( $ query -> expr ( ) -> eq ( 'id' , ':id' ) ) -> setParameter ( 'id' , $ condition -> id , Type :: INTEGER ) -> setParameter ( 'rule_id' , $ condition -> ruleId , Type :: INTEGER ) -> setParameter ( 'type' , $ condition -> type , Type :: STRING ) -> setParameter ( 'value' , json_encode ( $ condition -> value ) , Type :: STRING ) ; $ this -> applyStatusCondition ( $ query , $ condition -> status ) ; $ query -> execute ( ) ; }
Updates a condition.
Updates a condition .