lib/Persistence/Doctrine/QueryHandler/LayoutResolverQueryHandler.php
public function updateRuleData(Rule $rule): void
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->update('ngbm_rule_data')
            ->set('enabled', ':enabled')
            ->set('priority', ':priority')
            ->where(
                $query->expr()->eq('rule_id', ':rule_id')
            )
            ->setParameter('rule_id', $rule->id, Type::INTEGER)
            ->setParameter('enabled', $rule->enabled, Type::BOOLEAN)
            ->setParameter('priority', $rule->priority, Type::INTEGER);

        $query->execute();
    }
public function updateRuleData(Rule $rule): void
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->update('ngbm_rule_data')
            ->set('enabled', ':enabled')
            ->set('priority', ':priority')
            ->where(
                $query->expr()->eq('rule_id', ':rule_id')
            )
            ->setParameter('rule_id', $rule->id, Type::INTEGER)
            ->setParameter('enabled', $rule->enabled, Type::BOOLEAN)
            ->setParameter('priority', $rule->priority, Type::INTEGER);

        $query->execute();
    }
public function updateRuleData ( Rule $ rule ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> update ( 'ngbm_rule_data' ) -> set ( 'enabled' , ':enabled' ) -> set ( 'priority' , ':priority' ) -> where ( $ query -> expr ( ) -> eq ( 'rule_id' , ':rule_id' ) ) -> setParameter ( 'rule_id' , $ rule -> id , Type :: INTEGER ) -> setParameter ( 'enabled' , $ rule -> enabled , Type :: BOOLEAN ) -> setParameter ( 'priority' , $ rule -> priority , Type :: INTEGER ) ; $ query -> execute ( ) ; }
Updates rule data which is independent of statuses.
Updates rule data which is independent of statuses .