Category: events

Symfony 5 security.interactive_login event not called

I want to use the security.interactive_login event to update my User’s last login field. The event is successfully registered: php bin/console debug:event-dispatcher security.interactive_login Registered Listeners for "security.interactive_login" Event =========================================================== ——- ———————————————————————— ———- Order Callable Priority ——- ———————————————————————— ———- #1 AppEventSubscriberUserLocaleSubscriber::onSecurityInteractiveLogin()…

Is there an order state change event in Shopware 6?

Orders in Shopware 6 have these states: <?php declare(strict_types=1); namespace ShopwareCoreCheckoutOrder; final class OrderStates { public const STATE_MACHINE = ‘order.state’; public const STATE_OPEN = ‘open’; public const STATE_IN_PROGRESS = ‘in_progress’; public const STATE_COMPLETED = ‘completed’; public const STATE_CANCELLED = ‘cancelled’;…

Symfony 4 when entity field change, change field in another entity

I have two entities for example: class Dog { /** * @var House * * @ORMManyToOne(targetEntity=”House”) * @ORMJoinColumns({ * @ORMJoinColumn(name=”house_id”, referencedColumnName=”id”) * }) */ private $house; } class House { /** * @var ArrayCollection|null * @ORMManyToMany(targetEntity=”Dog”,cascade={“persist”}) * @ORMJoinColumns({ * @ORMJoinColumn(name=”dog_id”,…