Skip to content

Commit

Permalink
Add return type to EntityManagerTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jan 2, 2020
1 parent 67e969d commit d6df5e1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Adapter/ORM/EntityManagerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@

namespace Core23\Doctrine\Adapter\ORM;

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;

trait EntityManagerTrait
{
/**
* Creates a new QueryBuilder instance that is prepopulated for this entity name.
*
* @return EntityManager|QueryBuilder
*/
final protected function createQueryBuilder(string $alias, string $indexBy = null)
final protected function createQueryBuilder(string $alias, string $indexBy = null): QueryBuilder
{
return $this->getRepository()
->createQueryBuilder($alias, $indexBy)
Expand Down

0 comments on commit d6df5e1

Please sign in to comment.