/** * Returns a single document data by ID or null if document is not found. * * @param string $id Document Id to find. * @param int $resultType Result type returned. * * @return DocumentInterface|null */ public function getById($id, $resultType = Finder::RESULTS_OBJECT) { return $this->finder->get($this->documentClass, $id, $resultType); }
/** * Returns a single document data by ID or null if document is not found. * * @param string $id Document Id to find. * @param int $resultType Result type returned. * * @return DocumentInterface|null */ public function getById($id, $resultType = Finder::RESULTS_OBJECT) { return $this->finder->get($this->metadata->getShortClassName(), $id, $resultType); }