承接 xm/doctrine-entity-repository 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

xm/doctrine-entity-repository

Composer 安装命令:

composer require xm/doctrine-entity-repository

包简介

A different method of creating entity repositories for use with Doctrine.

README 文档

README

A different way of creating Doctrine Repositories based on this article by Magnus Nordlander. The main difference (as opposed to "normal" Doctrine Repositories) is that these can be autowired by Symfony. We've also found them easier to test.

Repositories extending this class should not be referenced by the repositoryClass entity mapping. But the repository can be used in the same way as "normal" Doctrine Entity Repositories.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require xm/doctrine-entity-repository

This command requires Composer.

Usage

<?php

namespace AppBundle\Repository;

use AppBundle\Entity\User;
use XM\EntityRepository;

class UserRepository extends EntityRepository
{
    /**
     * The entity class name that the repository is for.
     * Required. 
     */
    protected $class = User::class;
    
    // ... custom methods
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固