antstudiocz/doctrine-collections-readonly 问题修复 & 功能扩展

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

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

antstudiocz/doctrine-collections-readonly

最新稳定版本:v2.0.0

Composer 安装命令:

composer require antstudiocz/doctrine-collections-readonly

包简介

Read-only collection wrapper for easier work with Doctrine entity collections

README 文档

README

This package provides an implementation of a readonly collection wrapper, so you can return collections from your entities, without having to copy the contents of the collection, or exposing the object's state outside of it's control.

Build Status Downloads this Month Latest stable Coverage Status

Installation

The best way to install Kdyby/DoctrineCollectionsReadonly is using Composer:

$ composer require kdyby/doctrine-collections-readonly

Usage

Simply wrap your collection and return it.

public function getComments() : Collection
{
	return new ReadOnlyCollectionWrapper($this->comments);
}

Now you can use the Collection api as you're used to, you just cannot modifying it :)

Homepage http://www.kdyby.org and repository http://github.com/Kdyby/DoctrineCollectionsReadonly.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-06-21