2 namespace TYPO3\CMS\Extbase\Persistence\Generic;
83 if ($this->parentObject->_getProperty($this->propertyName) instanceof \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy) {
84 $objects = $this->dataMapper->fetchRelated($this->parentObject, $this->propertyName, $this->fieldValue,
false,
false);
85 $propertyValue = $this->dataMapper->mapResultToPropertyValue($this->parentObject, $this->propertyName, $objects);
86 $this->parentObject->_setProperty($this->propertyName, $propertyValue);
87 $this->parentObject->_memorizeCleanState($this->propertyName);
88 return $propertyValue;
90 return $this->parentObject->_getProperty($this->propertyName);
101 public function __call($methodName, $arguments)
104 if (!is_object($realInstance)) {
107 return call_user_func_array(array($realInstance, $methodName), $arguments);
129 public function __set($propertyName, $value)
131 $realInstance = $this->_loadRealInstance();
132 $realInstance->{$propertyName} = $value;
141 public function __isset($propertyName)
143 $realInstance = $this->_loadRealInstance();
144 return isset($realInstance->{$propertyName});
153 public function __unset($propertyName)
155 $realInstance = $this->_loadRealInstance();
156 unset($realInstance->{$propertyName});
164 public function __toString()
166 $realInstance = $this->_loadRealInstance();
167 return $realInstance->__toString();
175 public function current()
177 $realInstance = $this->_loadRealInstance();
178 return current($realInstance);
186 public function key()
188 $realInstance = $this->_loadRealInstance();
189 return key($realInstance);
197 public function next()
199 $realInstance = $this->_loadRealInstance();
208 public function rewind()
210 $realInstance = $this->_loadRealInstance();
211 reset($realInstance);
219 public function valid()
221 return $this->current() !==
false;