Newscoop\Entity\Repository\DatatableRepository::__construct PHP Method

__construct() public method

public __construct ( EntityManager $em, $entityName )
$em Doctrine\ORM\EntityManager
    public function __construct(EntityManager $em, $entityName)
    {
        $this->em = $em;
        $this->entityName = (string) $entityName;
        $this->repository = $this->em->getRepository($this->entityName);
    }