zucchi/doctrine 问题修复 & 功能扩展

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

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

zucchi/doctrine

Composer 安装命令:

composer require zucchi/doctrine

包简介

Zucchi Extensions for Doctrine

README 文档

README

Custom Extensions to Doctrine 2 ORM for use with Zucchi ZF2 Modules

Installation

From the root of your ZF2 Skeleton Application run

./composer.phar require zucchi/doctrine

Features

  • Automatic registration of Gedmo DoctrineExtensions
  • Timestampable Trait
  • Override of Date/Time Mappings to use Zucchi\DateTime Extended classes
  • Abstract Entity Class
  • Abstract Service Class
  • Custom DQL Regex Function
  • EntityField View helper for handling output of different entity field types
  • One To Many Form Population via Annotations
  • EntityManagerAware Interface and Trait

OneToMany Annotation Example

This example comes directly from the ZucchiLayout Module

    /**
     * @var PersistantCollection
     * @ORM\OneToMany(targetEntity="ZucchiLayout\Entity\Schedule", mappedBy="Layout")
     * @Form\Type("Zend\Form\Element\Collection")
     * @Form\Options({
     *     "label" : "Schedule",
     *     "count" : 2,
     *     "should_create_template" : true,
     *     "allow_add" : true,
     *     "allow_remove" : true,
     *     "target_element" : {
     *          "composedObject" : "ZucchiLayout\Entity\Schedule"
     *      }
     * })
     */
    public $Schedule;

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2012-08-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固