18 public const CODE =
'MORE_PHOTO';
22 parent::setFileStructure($fileFields);
27 $property = $parent->getPropertyCollection()->findByCode(self::CODE);
31 $item = $property->getPropertyValueCollection()->findByValue($this->
getId());
39 if ($property->isMultiple())
41 $values = $property->getPropertyValueCollection()->getValues();
50 $property->getPropertyValueCollection()->setValues($values);
66 $valueCollection = $property->getPropertyValueCollection();
68 foreach ($valueCollection as $item)
70 if ((
int)$item->getValue() === $this->getId())
72 $valueCollection->
remove($item);
79 return parent::remove();