src/Repository/Cv.php
public function findDraft($user)
    {
        if ($user instanceof UserInterface) {
            $user = $user->getId();
        }

        return $this->findOneDraftBy(['user' => $user]);
    }
public function findDraft($user)
    {
        if ($user instanceof UserInterface) {
            $user = $user->getId();
        }

        return $this->findOneDraftBy(['user' => $user]);
    }
public function findDraft ( $ user ) { if ( $ user instanceof UserInterface ) { $ user = $ user -> getId ( ) ; } return $ this -> findOneDraftBy ( [ 'user' => $ user ] ) ; }
Look for an drafted Document of a given user

@param $user
@return CvEntity|null
Look for an drafted Document of a given user