murph-core/src/core/Resources/maker/repository/RepositoryQuery.tpl.php

16 lines
432 B
PHP
Raw Normal View History

2023-10-12 16:15:07 +02:00
<?php echo "<?php\n"; ?>
2022-03-13 19:32:32 +01:00
2023-10-12 16:15:07 +02:00
namespace <?php echo $namespace; ?>;
2022-03-13 19:32:32 +01:00
use App\Core\Repository\RepositoryQuery;
use Knp\Component\Pager\PaginatorInterface;
2023-10-12 16:15:07 +02:00
use <?php echo $repository; ?> as Repository;
2022-03-13 19:32:32 +01:00
2023-10-12 16:15:07 +02:00
class <?php echo $class_name; ?> extends RepositoryQuery
2022-03-13 19:32:32 +01:00
{
public function __construct(Repository $repository, PaginatorInterface $paginator)
{
2023-10-12 16:15:07 +02:00
parent::__construct($repository, '<?php echo $id; ?>', $paginator);
2022-03-13 19:32:32 +01:00
}
}