Automatically detect the discriminator type of attachments and parameters based on the chosen element IRI

Related to issue #502
This commit is contained in:
Jan Böhmer 2024-03-02 23:14:40 +01:00
parent e843286ea7
commit f3bea68011
26 changed files with 152 additions and 40 deletions

View file

@ -41,10 +41,10 @@ declare(strict_types=1);
namespace App\Entity\Parameters;
use App\Repository\ParameterRepository;
use App\Entity\Base\AbstractDBElement;
use App\Entity\Parts\MeasurementUnit;
use App\Serializer\OverrideClassDenormalizer;
use App\Repository\ParameterRepository;
use App\Serializer\APIPlatform\OverrideClassDenormalizer;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Serializer\Attribute\Context;