rnr1721/le7-db-doctrine 问题修复 & 功能扩展

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

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

rnr1721/le7-db-doctrine

最新稳定版本:0.1.4

Composer 安装命令:

composer require rnr1721/le7-db-doctrine

包简介

Doctrine ORM integration for le7 PHP MVC framework

README 文档

README

This package integrate Doctrine ORM into le7 PHP MVC engine.

Setup

You need to setup database connection in ./config/db_doctrine.php file

Using in controllers

You will can inject into your controllers EntityManagerInterface

<?php

namespace App\Controller\Web;

use Doctrine\ORM\EntityManagerInterface;
use Psr\Http\Message\ResponseInterface;

class IndexController
{

    public function indexAction(EntityManagerInterface): ResponseInterface
    {   

        // Use Entity Manager

    }

}

Doctrine command line tool

You can use doctrine command-line tool this way

./cli.sh doctrine <doctrine options>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-24