Skip to content

Instantly share code, notes, and snippets.

View maciejmiara's full-sized avatar

Maciej Miara maciejmiara

  • The Software House
View GitHub Profile
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { Product } from './product.model';
@Module({
imports: [
TypeOrmModule.forRoot({
type: 'postgres',
Application\Handler\:
resource: '../src/Application/Handler/*'
tags:
- { name: tactician.handler, typehints: true }
<?php
declare(strict_types = 1);
namespace Infrastructure\Framework\Command;
use Application\Command\EnrollRunnerToRun;
use Application\Handler\EnrollRunnerToRunHandler;
use Common\Id;
use Domain\Exception\DomainException;
<?php
declare(strict_types = 1);
namespace Infrastructure\Framework\Repository;
use Doctrine\ORM\EntityManagerInterface;
use Domain\Model\RunParticipation;
use Infrastructure\Doctrine\Transformer\RunParticipationTransformer;
use Infrastructure\Framework\Entity\RunParticipation as RunParticipationEntity;
<?php
declare(strict_types = 1);
namespace Infrastructure\Framework\Repository;
use Common\Id;
use Doctrine\ORM\EntityManagerInterface;
use Domain\Exception\RunnerNotFound;
use Domain\Model\Runner;
<?php
declare(strict_types = 1);
namespace Infrastructure\Doctrine\Transformer;
use Doctrine\ORM\EntityManagerInterface;
use Infrastructure\Framework\Entity\Run;
use Infrastructure\Framework\Entity\Runner;
use Infrastructure\Framework\Entity\RunParticipation as Entity;
<?php
declare(strict_types = 1);
namespace Infrastructure\Framework\Entity;
use Common\Id;
use Doctrine\ORM\Mapping as ORM;
/**
<?php
declare(strict_types = 1);
namespace Infrastructure\Doctrine\Transformer;
use Infrastructure\Framework\Entity\Runner as Entity;
use Domain\Model\Runner as Domain;
class RunnerTransformer
<?php
declare(strict_types = 1);
namespace Infrastructure\Framework\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**