public function initializeReflection($reflService) { $this->reflClass = $reflService->getClass($this->name); $this->namespace = $reflService->getClassNamespace($this->name); if ($this->reflClass) { $this->name = $this->rootDocumentName = $this->reflClass->getName(); } }
public function getClassMetadata($class) { $metadata = new \Doctrine\ODM\CouchDB\Mapping\ClassMetadata($class); $metadata->initializeReflection(new RuntimeReflectionService()); $metadata->wakeupReflection(new RuntimeReflectionService()); return $metadata; }