定制 tbn/getsetforeignnormalizer-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tbn/getsetforeignnormalizer-bundle

最新稳定版本:v2.0.1

Composer 安装命令:

composer require tbn/getsetforeignnormalizer-bundle

包简介

Add the getsetforeignnormalizer service

README 文档

README

DEPRECATED: This bundle is not usefull anymore, use Symfony serializer/normalizer instead

This bundle gives a service that permits to normalize a doctrine entity.

The entity is normalized and the ids of the foreign entities of the entity are also normalized.

Install

composer require "tbn/getsetforeignnormalizer-bundle"

Usage

Get the service in your controller

    $normalizer = $this->get('get_set_foreign_normalizer');

If you do not want to normalize some attributes, use the setIgnoredAttributes parameter

    $normalizer->normalize($entities, true, false, array('allImages'));//avoid the getAllImages function

The foreign entities are not fully normalized by default

You can normalize all entities using

    $normalizer->normalize($entities, true);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-03-20