/** * @param $recordId * * @return Record */ public function getRecord($recordId, $dataDimensions = null) { if ($dataDimensions == null) { $dataDimensions = $this->getCurrentDataDimensions(); } $record = $this->readConnection->getRecord($recordId, $this->getCurrentContentTypeName(), $dataDimensions); if ($record) { $record->setRepository($this); } return $record; }
/** * @param $recordId * * @return Record */ public function getRecord($recordId) { $dataDimensions = $this->getCurrentDataDimensions(); return $this->readConnection->getRecord($recordId, $this->getCurrentContentTypeName(), $dataDimensions); }