Пример #1
0
 /**
  * Returns lazy loaded field by its name
  *
  * @param string $fieldName
  * @return mixed
  */
 public function getComputed($fieldName)
 {
     if (!isset($this->computed[$fieldName])) {
         $value = $this->mapper->lazyload($this, $fieldName);
         $this->computed[$fieldName] = $value;
     }
     return $this->computed[$fieldName];
 }