original_string: protected function findExistingRelationIds($checkIds = null)
      {
          $foreignKeyName = $this->relationModel->getQualifiedKeyName();
  
          $results = $this->relationObject
              ->getBaseQuery()
              ->select($foreignKeyName);
  
          if ($checkIds !== null && is_array($checkIds) && count($checkIds)) {
              $results = $results->whereIn($foreignKeyName, $checkIds);
          }
  
          return $results->lists($foreignKeyName);
      }
code: protected function findExistingRelationIds($checkIds = null)
      {
          $foreignKeyName = $this->relationModel->getQualifiedKeyName();
  
          $results = $this->relationObject
              ->getBaseQuery()
              ->select($foreignKeyName);
  
          if ($checkIds !== null && is_array($checkIds) && count($checkIds)) {
              $results = $results->whereIn($foreignKeyName, $checkIds);
          }
  
          return $results->lists($foreignKeyName);
      }
code_tokens: protected function findExistingRelationIds ( $ checkIds = null ) { $ foreignKeyName = $ this -> relationModel -> getQualifiedKeyName ( ) ; $ results = $ this -> relationObject -> getBaseQuery ( ) -> select ( $ foreignKeyName ) ; if ( $ checkIds !== null && is_array ( $ checkIds ) && count ( $ checkIds ) ) { $ results = $ results -> whereIn ( $ foreignKeyName , $ checkIds ) ; } return $ results -> lists ( $ foreignKeyName ) ; }
docstring: Returns the existing record IDs for the relation.
docstring_tokens: Returns the existing record IDs for the relation .