small/swoole-entity-manager-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

small/swoole-entity-manager-bundle

最新稳定版本:1.1.1

Composer 安装命令:

composer require small/swoole-entity-manager-bundle

包简介

Symfony bundle for Small Swoole Entity Manager, an ORM designed for swoole

README 文档

README

Small Swoole Entity Manager Bundle

Small Swoole Entity Manager is an ORM designed for Swoole and OpenSwoole.

This bundle is a Symfony bridge for it.

  

Installation

composer require small/swoole-entity-manager-bundle

To configure a connection to database, create a "config/packages/small_swoole_entity_manager.yaml" :

small_swoole_entity_manager:
  default_connection: test
  connections:
    test:
      type: mysql
      host: localhost
      database: test_db
      user: root
      encoding: utf8
      password: dev

Possibles values for type : "mysql" or "postgres"

Get manager

Now, you are able to get your managers via Symfony container :

$this->container
    ->get(\Small\SwooleEntityManagerBundle\Contract\EntityManagerFactoryInterface::class)
    ->get(\Small\SwooleEntityManagerBundle\Test\Fixture\EntityManager\UserManager::class)
;

See Small Swoole Entity Manager documentation for how to use manager.

Get connection

You can also retrieve Small Swoole Entity Manager connection to execute native statements :

$connection = $this->container
    ->get(\Small\SwooleEntityManagerBundle\Contract\ConnectionFactoryInterface::class)
    ->get('test')
;

See Small Swoole Entity Manager documentation for how to use connection.

统计信息

  • 总下载量: 78
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-01