original_string: public function getInverseCriteria(EntityMetadata $owner, EntityMetadata $related, $identifiers, $inverseField)
      {
          $criteria = [
              $inverseField   => (array) $identifiers,
          ];
          if (true === $related->isChildEntity()) {
              // The relationship is owned by a polymorphic model. Must include the type in the root criteria.
              $criteria[Persister::POLYMORPHIC_KEY] = $related->type;
          }
          return $criteria;
      }
code: public function getInverseCriteria(EntityMetadata $owner, EntityMetadata $related, $identifiers, $inverseField)
      {
          $criteria = [
              $inverseField   => (array) $identifiers,
          ];
          if (true === $related->isChildEntity()) {
              // The relationship is owned by a polymorphic model. Must include the type in the root criteria.
              $criteria[Persister::POLYMORPHIC_KEY] = $related->type;
          }
          return $criteria;
      }
code_tokens: public function getInverseCriteria ( EntityMetadata $ owner , EntityMetadata $ related , $ identifiers , $ inverseField ) { $ criteria = [ $ inverseField => ( array ) $ identifiers , ] ; if ( true === $ related -> isChildEntity ( ) ) { // The relationship is owned by a polymorphic model. Must include the type in the root criteria. $ criteria [ Persister :: POLYMORPHIC_KEY ] = $ related -> type ; } return $ criteria ; }
docstring: Gets standard database retrieval criteria for an inverse relationship.
  
  @param   EntityMetadata  $owner
  @param   EntityMetadata  $related
  @param   string|array    $identifiers
  @param   string          $inverseField
  @return  array
docstring_tokens: Gets standard database retrieval criteria for an inverse relationship .