DigiComp.AssetAttributes/Classes/Aspects/AssetExtensionsAspect.php
Ferdinand Kuhl 8b792978ed
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests Pipeline was successful
making the persist cascade of attributes explicit
2023-07-25 19:56:13 +02:00

22 lines
622 B
PHP

<?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)")
* @ORM\ManyToMany(inversedBy="assets", indexBy="name", cascade={"persist"})
* @var Collection<AssetAttribute>
*/
protected $attributes;
}