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

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

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

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

        return $query->execute()->fetchAll(PDO::FETCH_ASSOC);
    }
public function loadItemWithPositionData ( Collection $ collection , int $ position ) : array { $ query = $ this -> getItemSelectQuery ( ) ; $ query -> where ( $ query -> expr ( ) -> andX ( $ query -> expr ( ) -> eq ( 'collection_id' , ':collection_id' ) , $ query -> expr ( ) -> eq ( 'position' , ':position' ) ) ) -> setParameter ( 'collection_id' , $ collection -> id , Type :: INTEGER ) -> setParameter ( 'position' , $ position , Type :: INTEGER ) ; $ this -> applyStatusCondition ( $ query , $ collection -> status ) ; return $ query -> execute ( ) -> fetchAll ( PDO :: FETCH_ASSOC ) ; }
Loads an item with specified position in specified collection.
Loads an item with specified position in specified collection .