for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Ray.DoctrineOrmModule package
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\DoctrineOrmModule;
use Doctrine\ORM\EntityManagerInterface;
use Ray\Di\Di\Inject;
trait EntityManagerInject
{
* @var EntityManagerInterface
protected $entityManager;
* @param EntityManagerInterface $entityManager
* @Inject
public function setEntityManager(EntityManagerInterface $entityManager)
$this->entityManager = $entityManager;
}