plugin/dropzone/Repository/DropRepository.php
public function isUnlockedDrop($dropzoneId, $userId)
    {
        $qb = $this->createQueryBuilder('drop')
            ->select('drop.unlockedUser')
            ->andWhere('drop.dropzone = :dropzone')
            ->andWhere('drop.user = :user')
            ->setParameter('dropzone', $dropzoneId)
            ->setParameter('user', $userId);
        $isUnlockedDrop = $qb->getQuery()->getOneOrNullResult();

        return $isUnlockedDrop;
    }
public function isUnlockedDrop($dropzoneId, $userId)
    {
        $qb = $this->createQueryBuilder('drop')
            ->select('drop.unlockedUser')
            ->andWhere('drop.dropzone = :dropzone')
            ->andWhere('drop.user = :user')
            ->setParameter('dropzone', $dropzoneId)
            ->setParameter('user', $userId);
        $isUnlockedDrop = $qb->getQuery()->getOneOrNullResult();

        return $isUnlockedDrop;
    }
public function isUnlockedDrop ( $ dropzoneId , $ userId ) { $ qb = $ this -> createQueryBuilder ( 'drop' ) -> select ( 'drop.unlockedUser' ) -> andWhere ( 'drop.dropzone = :dropzone' ) -> andWhere ( 'drop.user = :user' ) -> setParameter ( 'dropzone' , $ dropzoneId ) -> setParameter ( 'user' , $ userId ) ; $ isUnlockedDrop = $ qb -> getQuery ( ) -> getOneOrNullResult ( ) ; return $ isUnlockedDrop ; }
Return if user was unlocked ( no need to make the required corrections
todo Why not in a user super class ?

@param $dropzoneId
@param $userId

@return array
Return if user was unlocked ( no need to make the required corrections todo Why not in a user super class ?