lib/Persistence/Doctrine/QueryHandler/CollectionQueryHandler.php
public function loadCollectionItemsData(Collection $collection): array
    {
        $query = $this->getItemSelectQuery();
        $query->where(
            $query->expr()->eq('collection_id', ':collection_id')
        )
        ->setParameter('collection_id', $collection->id, Type::INTEGER);

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

        $query->addOrderBy('position', 'ASC');

        return $query->execute()->fetchAll(PDO::FETCH_ASSOC);
    }
public function loadCollectionItemsData(Collection $collection): array
    {
        $query = $this->getItemSelectQuery();
        $query->where(
            $query->expr()->eq('collection_id', ':collection_id')
        )
        ->setParameter('collection_id', $collection->id, Type::INTEGER);

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

        $query->addOrderBy('position', 'ASC');

        return $query->execute()->fetchAll(PDO::FETCH_ASSOC);
    }
public function loadCollectionItemsData ( Collection $ collection ) : array { $ query = $ this -> getItemSelectQuery ( ) ; $ query -> where ( $ query -> expr ( ) -> eq ( 'collection_id' , ':collection_id' ) ) -> setParameter ( 'collection_id' , $ collection -> id , Type :: INTEGER ) ; $ this -> applyStatusCondition ( $ query , $ collection -> status ) ; $ query -> addOrderBy ( 'position' , 'ASC' ) ; return $ query -> execute ( ) -> fetchAll ( PDO :: FETCH_ASSOC ) ; }
Loads all data for items that belong to collection with specified ID.
Loads all data for items that belong to collection with specified ID .