30 private $warning =
'You should never see this warning. If you do, you probably used PHP array functions like current() on the TYPO3\\CMS\\Extbase\\Persistence\\Generic\\LazyObjectStorage. To retrieve the first result, you can use the rewind() and current() methods.';
84 reset($this->storage);
95 $objects = $this->dataMapper->fetchRelated($this->parentObject, $this->propertyName, $this->fieldValue, FALSE);
96 foreach ($objects as $object) {
97 parent::attach($object);
101 $this->parentObject->_memorizeCleanState($this->propertyName);
110 return $this->parentObject->_getCleanProperty($this->propertyName) === $this;
130 public function attach($object, $data = NULL) {
132 parent::attach($object, $data);
143 return parent::contains($object);
153 $columnMap = $this->dataMapper->getDataMap(get_class($this->parentObject))->getColumnMap($this->propertyName);
154 $numberOfElements = NULL;
156 $numberOfElements = $this->dataMapper->countRelated($this->parentObject, $this->propertyName, $this->fieldValue);
159 $numberOfElements =
count($this->storage);
161 if (is_null($numberOfElements)) {
162 throw new \TYPO3\CMS\Extbase\Persistence\Generic\Exception(
'The number of elements could not be determined.', 1252514486);
164 return $numberOfElements;
174 return parent::current();
184 parent::detach($object);
194 return parent::key();
213 return parent::offsetExists($object);
224 return parent::offsetGet($object);
235 parent::offsetSet($object, $info);
246 parent::offsetUnset($object);
275 return parent::valid();
285 return parent::toArray();
294 return parent::getPosition($object);
isStorageAlreadyMemorizedInParentCleanState()
offsetSet($object, $info)
__construct($parentObject, $propertyName, $fieldValue)
attach($object, $data=NULL)