Get this classes metadata object
public getClassMetaData ( ) : Drest\Mapping\ClassMetaData | ||
return | Drest\Mapping\ClassMetaData | $class_metadata |
/** * 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; }
public static function handleAlreadyDefinedForRoute(Mapping\RouteMetaData $route) { return new self('There is a handle already defined for the route ' . $route->getName() . ' on class ' . $route->getClassMetaData()->getClassName()); }