2023-02-09 13:02:22 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace DigiComp\AssetAttributes\Aspects;
|
|
|
|
|
|
|
|
use DigiComp\AssetAttributes\Domain\Model\AssetAttribute;
|
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
use Neos\Flow\Annotations as Flow;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Flow\Aspect
|
|
|
|
* @Flow\Introduce("class(Neos\Media\Domain\Model\Asset)", traitName="DigiComp\AssetAttributes\AssetAttributeTrait")
|
|
|
|
*/
|
|
|
|
class AssetExtensionsAspect
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Flow\Introduce("class(Neos\Media\Domain\Model\Asset)")
|
2023-07-25 19:56:13 +02:00
|
|
|
* @ORM\ManyToMany(inversedBy="assets", indexBy="name", cascade={"persist"})
|
2023-02-09 13:02:22 +01:00
|
|
|
* @var Collection<AssetAttribute>
|
|
|
|
*/
|
|
|
|
protected $attributes;
|
|
|
|
}
|