for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rottenwood\KingdomBundle\Entity\Infrastructure;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityRepository;
/** {@inheritDoc} */
class AbstractRepository extends EntityRepository
{
/**
* @param object $entity
*/
public function persist($entity)
$this->_em->persist($entity);
}
* @param object|null $entity
public function flush($entity = null)
$this->_em->flush($entity);
public function remove($entity)
$this->_em->remove($entity);
* @return EntityManager
public function getEntityManager()
return $this->_em;