This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application\Handler\: | |
resource: '../src/Application/Handler/*' | |
tags: | |
- { name: tactician.handler, typehints: true } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace Infrastructure\Framework\Command; | |
use Application\Command\EnrollRunnerToRun; | |
use Application\Handler\EnrollRunnerToRunHandler; | |
use Common\Id; | |
use Domain\Exception\DomainException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace Infrastructure\Framework\Repository; | |
use Common\Id; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Domain\Exception\RunnerNotFound; | |
use Domain\Model\Runner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace Infrastructure\Framework\Entity; | |
use Common\Id; | |
use Doctrine\ORM\Mapping as ORM; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace Infrastructure\Doctrine\Transformer; | |
use Infrastructure\Framework\Entity\Runner as Entity; | |
use Domain\Model\Runner as Domain; | |
class RunnerTransformer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace Infrastructure\Framework\Entity; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\ORM\Mapping as ORM; | |
/** |