lib/Persistence/Doctrine/QueryHandler/LayoutQueryHandler.php
public function updateLayout(Layout $layout): void
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->update('ngbm_layout')
            ->set('type', ':type')
            ->set('name', ':name')
            ->set('description', ':description')
            ->set('created', ':created')
            ->set('modified', ':modified')
            ->set('shared', ':shared')
            ->set('main_locale', ':main_locale')
            ->where(
                $query->expr()->eq('id', ':id')
            )
            ->setParameter('id', $layout->id, Type::INTEGER)
            ->setParameter('type', $layout->type, Type::STRING)
            ->setParameter('name', $layout->name, Type::STRING)
            ->setParameter('description', $layout->description, Type::STRING)
            ->setParameter('created', $layout->created, Type::INTEGER)
            ->setParameter('modified', $layout->modified, Type::INTEGER)
            ->setParameter('shared', $layout->shared, Type::BOOLEAN)
            ->setParameter('main_locale', $layout->mainLocale, Type::STRING);

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

        $query->execute();
    }
public function updateLayout(Layout $layout): void
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->update('ngbm_layout')
            ->set('type', ':type')
            ->set('name', ':name')
            ->set('description', ':description')
            ->set('created', ':created')
            ->set('modified', ':modified')
            ->set('shared', ':shared')
            ->set('main_locale', ':main_locale')
            ->where(
                $query->expr()->eq('id', ':id')
            )
            ->setParameter('id', $layout->id, Type::INTEGER)
            ->setParameter('type', $layout->type, Type::STRING)
            ->setParameter('name', $layout->name, Type::STRING)
            ->setParameter('description', $layout->description, Type::STRING)
            ->setParameter('created', $layout->created, Type::INTEGER)
            ->setParameter('modified', $layout->modified, Type::INTEGER)
            ->setParameter('shared', $layout->shared, Type::BOOLEAN)
            ->setParameter('main_locale', $layout->mainLocale, Type::STRING);

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

        $query->execute();
    }
public function updateLayout ( Layout $ layout ) : void { $ query = $ this -> connection -> createQueryBuilder ( ) ; $ query -> update ( 'ngbm_layout' ) -> set ( 'type' , ':type' ) -> set ( 'name' , ':name' ) -> set ( 'description' , ':description' ) -> set ( 'created' , ':created' ) -> set ( 'modified' , ':modified' ) -> set ( 'shared' , ':shared' ) -> set ( 'main_locale' , ':main_locale' ) -> where ( $ query -> expr ( ) -> eq ( 'id' , ':id' ) ) -> setParameter ( 'id' , $ layout -> id , Type :: INTEGER ) -> setParameter ( 'type' , $ layout -> type , Type :: STRING ) -> setParameter ( 'name' , $ layout -> name , Type :: STRING ) -> setParameter ( 'description' , $ layout -> description , Type :: STRING ) -> setParameter ( 'created' , $ layout -> created , Type :: INTEGER ) -> setParameter ( 'modified' , $ layout -> modified , Type :: INTEGER ) -> setParameter ( 'shared' , $ layout -> shared , Type :: BOOLEAN ) -> setParameter ( 'main_locale' , $ layout -> mainLocale , Type :: STRING ) ; $ this -> applyStatusCondition ( $ query , $ layout -> status ) ; $ query -> execute ( ) ; }
Updates a layout.
Updates a layout .