attribute = $attribute; } public function getModelEntity(): BaseFileCollectionModel { $entity = parent::getModelEntity(); $entity->setSkipOnEmpty($entity->getSkipOnEmpty() || $this->attachments); return $entity; } public function getInputName(): string { return "{$this->getModelEntity()->formName()}[{$this->attribute}][{$this->getIndex()}]"; } }