Lw\Infrastructure\Persistence\Doctrine\EntityManagerFactory::build PHP Method

build() public method

public build ( $conn ) : EntityManager
return Doctrine\ORM\EntityManager
    public function build($conn)
    {
        \Doctrine\DBAL\Types\Type::addType('UserId', 'Lw\\Infrastructure\\Domain\\Model\\User\\DoctrineUserId');
        \Doctrine\DBAL\Types\Type::addType('WishId', 'Lw\\Infrastructure\\Domain\\Model\\Wish\\DoctrineWishId');
        return EntityManager::create($conn, Setup::createYAMLMetadataConfiguration([__DIR__ . '/Mapping'], true));
    }
EntityManagerFactory