<?php

namespace Oro\src\Oro\Bundle\EmailBundle\Tests\Unit\Fixtures\Entity;

use Oro\Bundle\AttachmentBundle\Entity\Attachment as BaseAttachment;

class Attachment extends BaseAttachment
{
    protected $supportTarget = true;

    public function setSupportTarget($supportTarget)
    {
        $this->supportTarget = $supportTarget;
    }

    public function supportTarget()
    {
        return $this->supportTarget;
    }
}

<?php

namespace Oro\src\Oro\Bundle\EmailBundle\Tests\Unit\Fixtures\Entity;

use Oro\Bundle\AttachmentBundle\Entity\Attachment as BaseAttachment;

class Attachment extends BaseAttachment
{
    protected $supportTarget = true;

    /**
     * @param $supportTarget
     */
    public function setSupportTarget($supportTarget)
    {
        $this->supportTarget = $supportTarget;
    }

    /**
     * @param string $targetClass
     *
     * @return bool
     */
    public function supportTarget($targetClass)
    {
        return $this->supportTarget;
    }
}

Save attachment as attachment entity - Support target method
CRM-2906: Save attachment as attachment entity
- Support target method
