DomainEventSubscriber
has been marked as deprecated,DomainEventLifecycleListener
has been introduced as replacement
Lifecycle subscribers are deprecated starting from Symfony 6.3 and will be removed in Symfony 7.0 (see https://symfony.com/doc/6.3/doctrine/events.html#doctrine-lifecycle-listeners).
IdTrait
got renamed toIntegerIdTrait
AggregateRoot
does not implement theIdTrait
anymoreEntityInterface
changed the return type ofgetId
to mixed
We want more flexibility when using ids and the types they do represent. With the changes mentioned above, we can now
leave the decision regarding the type of id to the user of this extension. Meaning now you have the responsibility but
also possibility to implement the getId
function. It can be an integer
, a Uuid
, a customer id type or something
completely different.