Ejemplo n.º 1
0
 /**
  * @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;
 }
Ejemplo n.º 2
0
 /**
  * @param      $recordId
  *
  * @return Record
  */
 public function getRecord($recordId)
 {
     $dataDimensions = $this->getCurrentDataDimensions();
     return $this->readConnection->getRecord($recordId, $this->getCurrentContentTypeName(), $dataDimensions);
 }