/**
  * Check if a named property is of specified type.
  * Call when we only know the name of property, and not the var itself
  *
  */
 public function propertyIsRelation($propertyName, $entityClass = null)
 {
     if ($entityClass === null) {
         $entityClass = $this->core->getCurrentEntityClass();
     }
     return $this->entityManager->getMetadataFactory()->getMetadataFor($entityClass)->hasAssociation($propertyName);
 }
 /**
  * @param Request $request
  * @param Response $response
  * @param \Exception|null $exception
  */
 public function collect(Request $request, Response $response, \Exception $exception = null)
 {
     $this->data = array('adminsTotal' => count($this->core->getAdmins()), 'admins' => $this->core->getAdmins(), 'routes' => $this->core->getRoutes(), 'currentAdminService' => $this->core->getCurrentAdmin()['service'], 'currentAdminSlug' => $this->core->getCurrentSlug(), 'currentEntityClass' => $this->core->getCurrentEntityClass(), 'currentAction' => $this->core->getCurrentAction());
 }