/**
* Set the default exposure fields using the configured exposure depth
* @param EntityManager $em
* @param integer $exposureDepth
* @param integer $exposureRelationsFetchType
* @return ExposeFields $this object instance
*/
public function configureExposeDepth(EntityManager $em, $exposureDepth = 0, $exposureRelationsFetchType = null)
{
if (!empty($this->route_expose)) {
$this->fields = $this->route_expose;
} else {
$this->processExposeDepth($this->fields, $this->route->getClassMetaData()->getClassName(), $em, $exposureDepth, $exposureRelationsFetchType);
}
return $this;
}