You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the class Ddd\Infrastructure\Application\Notification\DoctrinePublishedMessageTracker on line 18 the code should be replaced with: $messageTracked = $this->findOneBy(array('typeName'=>$aTypeName), array('trackerId'=>'DESC')); in order to return the last PublishedMessageId
The text was updated successfully, but these errors were encountered:
OK, but if that's the design, then there is a problem with the class Ddd\Infrastructure\Application\Notification\DoctrinePublishedMessageTracker on the line 39 where the $publishedMessage = $this->find($aTypeName); method never finds the PublishedMessage object in the repository and always creates a new one in the persistence and the result is multiple records for one typeName in the event_published_message_tracker table. The find method expects the primary key and not the $aTypeName.
In the class Ddd\Infrastructure\Application\Notification\DoctrinePublishedMessageTracker on line 18 the code should be replaced with: $messageTracked = $this->findOneBy(array('typeName'=>$aTypeName), array('trackerId'=>'DESC')); in order to return the last PublishedMessageId
The text was updated successfully, but these errors were encountered: