protected function getAllMetadata($managerName = null) {
		if(!$this->allMetadata) {
			$this->allMetadata = $this->registry->getManager($managerName)->getMetadataFactory()->getAllMetadata();
		}
		return $this->allMetadata;
	}