lib/Persistence/Doctrine/QueryHandler/BlockQueryHandler.php
public function loadBlockData($blockId, int $status): array
    {
        $query = $this->getBlockSelectQuery();
        $query->where(
            $query->expr()->eq('b.id', ':id')
        )
        ->setParameter('id', $blockId, Type::INTEGER);

        $this->applyStatusCondition($query, $status, 'b.status');

        return $query->execute()->fetchAll(PDO::FETCH_ASSOC);
    }
public function loadBlockData($blockId, int $status): array
    {
        $query = $this->getBlockSelectQuery();
        $query->where(
            $query->expr()->eq('b.id', ':id')
        )
        ->setParameter('id', $blockId, Type::INTEGER);

        $this->applyStatusCondition($query, $status, 'b.status');

        return $query->execute()->fetchAll(PDO::FETCH_ASSOC);
    }
public function loadBlockData ( $ blockId , int $ status ) : array { $ query = $ this -> getBlockSelectQuery ( ) ; $ query -> where ( $ query -> expr ( ) -> eq ( 'b.id' , ':id' ) ) -> setParameter ( 'id' , $ blockId , Type :: INTEGER ) ; $ this -> applyStatusCondition ( $ query , $ status , 'b.status' ) ; return $ query -> execute ( ) -> fetchAll ( PDO :: FETCH_ASSOC ) ; }
Loads all block data.

@param int|string $blockId
@param int $status

@return array
Loads all block data .