src/Model/Article.php
public function getAttachmentByField(string $field): array
    {
        if (isset($this->attachment[$field])) {
            return $this->attachment[$field];
        }

        return [];
    }
public function getAttachmentByField(string $field): array
    {
        if (isset($this->attachment[$field])) {
            return $this->attachment[$field];
        }

        return [];
    }
getAttachment based on fields