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
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2012-08-26