/** * @api * @param int $id * @return bool|\Everyman\Neo4j\Node */ public function find($id) { if (!($entity = $this->entityManager->findAny($id))) { return false; } if (!$entity->getEntity() instanceof $this->class) { return false; } return $entity; }