lib/Persistence/Doctrine/QueryHandler/CollectionQueryHandler.php
public function updateItem(Item $item): void
    {
        $query = $this->connection->createQueryBuilder();

        $query
            ->update('ngbm_collection_item')
            ->set('collection_id', ':collection_id')
            ->set('position', ':position')
            ->set('value', ':value')
            ->set('value_type', ':value_type')
            ->set('config', ':config')
            ->where(
                $query->expr()->eq('id', ':id')
            )
            ->setParameter('id', $item->id, Type::INTEGER)
            ->setParameter('collection_id', $item->collectionId, Type::INTEGER)
            ->setParameter('position', $item->position, Type::INTEGER)
            ->setParameter('value', $item->value, Type::STRING)
            ->setParameter('value_type', $item->valueType, Type::STRING)
            ->setParameter('config', $item->config, Type::JSON_ARRAY);

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

        $query->execute();
    }
public function updateItem(Item $item): void
    {
        $query = $this->connection->createQueryBuilder();

        $query
            ->update('ngbm_collection_item')
            ->set('collection_id', ':collection_id')
            ->set('position', ':position')
            ->set('value', ':value')
            ->set('value_type', ':value_type')
            ->set('config', ':config')
            ->where(
                $query->expr()->eq('id', ':id')
            )
            ->setParameter('id', $item->id, Type::INTEGER)
            ->setParameter('collection_id', $item->collectionId, Type::INTEGER)
            ->setParameter('position', $item->position, Type::INTEGER)
            ->setParameter('value', $item->value, Type::STRING)
            ->setParameter('value_type', $item->valueType, Type::STRING)
            ->setParameter('config', $item->config, Type::JSON_ARRAY);

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

        $query->execute();
    }
public function updateItem ( Item $ item ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> update ( 'ngbm_collection_item' ) -> set ( 'collection_id' , ':collection_id' ) -> set ( 'position' , ':position' ) -> set ( 'value' , ':value' ) -> set ( 'value_type' , ':value_type' ) -> set ( 'config' , ':config' ) -> where ( $ query -> expr ( ) -> eq ( 'id' , ':id' ) ) -> setParameter ( 'id' , $ item -> id , Type :: INTEGER ) -> setParameter ( 'collection_id' , $ item -> collectionId , Type :: INTEGER ) -> setParameter ( 'position' , $ item -> position , Type :: INTEGER ) -> setParameter ( 'value' , $ item -> value , Type :: STRING ) -> setParameter ( 'value_type' , $ item -> valueType , Type :: STRING ) -> setParameter ( 'config' , $ item -> config , Type :: JSON_ARRAY ) ; $ this -> applyStatusCondition ( $ query , $ item -> status ) ; $ query -> execute ( ) ; }
Updates an item.
Updates an item .