$groups,
$cascadedGroups,
TraversalStrategy::IMPLICIT,
$context );
} } // If no specific traversal strategy was requested when this method
// was called, use the traversal strategy of the class' metadata
if ($traversalStrategy & TraversalStrategy::IMPLICIT
) { $traversalStrategy =
$metadata->
getTraversalStrategy();
} // Traverse only if IMPLICIT or TRAVERSE
if (!
($traversalStrategy &
(TraversalStrategy::IMPLICIT | TraversalStrategy::TRAVERSE
))) { return;
} // If IMPLICIT, stop unless we deal with a Traversable
if ($traversalStrategy & TraversalStrategy::IMPLICIT && !
$object instanceof \Traversable
) { return;
}