Skip to content

Instantly share code, notes, and snippets.

@imiroslavov
Last active January 30, 2020 08:39
Show Gist options
  • Save imiroslavov/29a8e75ba9c28a67de98c77725a7ec85 to your computer and use it in GitHub Desktop.
Save imiroslavov/29a8e75ba9c28a67de98c77725a7ec85 to your computer and use it in GitHub Desktop.
<?php
namespace App\Repository;
use App\Entity\SomeEntity;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
class SomeEntityRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, SomeEntity::class);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment