for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HMLB\DDDBundle\Doctrine\ORM;
use HMLB\DDD\Entity\Identity;
use HMLB\DDD\Message\Command\PersistentCommand;
use HMLB\DDDBundle\Repository\PersistentCommandRepository;
/**
* ORMCommandRepository.
*
* @author Hugues Maignol <[email protected]>
*/
class ORMPersistentCommandRepository extends AbstractOrmPersistentMessageRepository implements PersistentCommandRepository
{
* @param Identity $identity
* @return PersistentCommand
public function get(Identity $identity): PersistentCommand
return $this->em->getRepository(PersistentCommand::class)->find($identity);
}