Services/DacorpMediaManager.php
public function manageSimpleMediaFor($parentContent, $editId, $itemId, $oneFileName, $userId, $parentType)
    {
        $newEditId = $this->fileManager->generateItemId($userId, $itemId);
        //just take the only attachment, which should be the first
        return $this->manageSimpleMedia($parentContent, $editId, $newEditId, $oneFileName, $parentType);
    }
public function manageSimpleMediaFor($parentContent, $editId, $itemId, $oneFileName, $userId, $parentType)
    {
        $newEditId = $this->fileManager->generateItemId($userId, $itemId);
        //just take the only attachment, which should be the first
        return $this->manageSimpleMedia($parentContent, $editId, $newEditId, $oneFileName, $parentType);
    }
public function manageSimpleMediaFor ( $ parentContent , $ editId , $ itemId , $ oneFileName , $ userId , $ parentType ) { $ newEditId = $ this -> fileManager -> generateItemId ( $ userId , $ itemId ) ; //just take the only attachment, which should be the first return $ this -> manageSimpleMedia ( $ parentContent , $ editId , $ newEditId , $ oneFileName , $ parentType ) ; }
For Entity with OneToOne relation to media
@param $parentContent
@param $editId
@param $itemId
@param $userId
@param array $newAttachmentList
For Entity with OneToOne relation to media