Model/Attachment.php
public function saveRememberedCustomName()
    {
        if (null === $this->rememberName || !$this->hasLoadedLinks())
        {
            return;
        }
        
        foreach ($this->collAttachmentLinks as $attachmentLink)
        {
            /* @var $attachmentLink AttachmentLink */
            $attachmentLink
                ->setCustomName($this->rememberName)
                ->save()
            ;
        }
        
        return $this;
    }
public function saveRememberedCustomName()
    {
        if (null === $this->rememberName || !$this->hasLoadedLinks())
        {
            return;
        }
        
        foreach ($this->collAttachmentLinks as $attachmentLink)
        {
            /* @var $attachmentLink AttachmentLink */
            $attachmentLink
                ->setCustomName($this->rememberName)
                ->save()
            ;
        }
        
        return $this;
    }
public function saveRememberedCustomName ( ) { if ( null === $ this -> rememberName || ! $ this -> hasLoadedLinks ( ) ) { return ; } foreach ( $ this -> collAttachmentLinks as $ attachmentLink ) { /* @var $attachmentLink AttachmentLink */ $ attachmentLink -> setCustomName ( $ this -> rememberName ) -> save ( ) ; } return $ this ; }
Save custom name to all loaded AttachmentLinks if it has been set from the outside.

@return Attachment
Save custom name to all loaded AttachmentLinks if it has been set from the outside .