Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ use Doctrine\Persistence\ManagerRegistry;
use Symfony\Component\Uid\Uuid;
use Symfony\Contracts\Cache\CacheInterface;
use Symfony\Contracts\Cache\ItemInterface;
use Tbn\QueryBuilderRepositoryGeneratorBundle\Interface\FilterByInterface;
use Tbn\QueryBuilderRepositoryGeneratorBundle\Interface\FilterInInterface;

/**
* Generated class for filter query builders
*
*/
class {{ entityClassname }}Base extends {{ extendClass }}
class {{ entityClassname }}Base extends {{ extendClass }} implements FilterByInterface, FilterInInterface
{
const NAME = '{{ entityDql }}';
protected static $parameterIndex = 0;
Expand Down
4 changes: 3 additions & 1 deletion tests/Repository/MyClassRepositoryBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
use Symfony\Component\Uid\Uuid;
use Symfony\Contracts\Cache\CacheInterface;
use Symfony\Contracts\Cache\ItemInterface;
use Tbn\QueryBuilderRepositoryGeneratorBundle\Interface\FilterByInterface;
use Tbn\QueryBuilderRepositoryGeneratorBundle\Interface\FilterInInterface;

/**
* Generated class for filter query builders
*
*/
class MyClassRepositoryBase extends \Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository
class MyClassRepositoryBase extends \Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository implements FilterByInterface, FilterInInterface
{
const NAME = 'myClass';
protected static $parameterIndex = 0;
Expand Down
4 changes: 3 additions & 1 deletion tests/Service/ExpectedMyClassRepositoryBase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ use Doctrine\Persistence\ManagerRegistry;
use Symfony\Component\Uid\Uuid;
use Symfony\Contracts\Cache\CacheInterface;
use Symfony\Contracts\Cache\ItemInterface;
use Tbn\QueryBuilderRepositoryGeneratorBundle\Interface\FilterByInterface;
use Tbn\QueryBuilderRepositoryGeneratorBundle\Interface\FilterInInterface;

/**
* Generated class for filter query builders
*
*/
class MyClassRepositoryBase extends \Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository
class MyClassRepositoryBase extends \Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository implements FilterByInterface, FilterInInterface
{
const NAME = 'myClass';
protected static $parameterIndex = 0;
Expand Down
Loading