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;
    }
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;
    }
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 ; }
Gets standard database retrieval criteria for an inverse relationship.

@param   EntityMetadata  $owner
@param   EntityMetadata  $related
@param   string|array    $identifiers
@param   string          $inverseField
@return  array
Gets standard database retrieval criteria for an inverse relationship .