概述 快速入门 教程 手册 最佳实践 组件 参考 贡献

发布于 2015-08-27 16:49:00 | 169 次阅读 | 评论: 0 | 来源: 网络整理

Doctrine2 is very flexible, and the community has already created a series of useful Doctrine extensions to help you with common entity-related tasks.

One library in particular - the DoctrineExtensions library - provides integration functionality for Sluggable, Translatable, Timestampable, Loggable, Tree and Sortable behaviors.

The usage for each of these extensions is explained in that repository.

However, to install/activate each extension you must register and activate an Event Listener. To do this, you have two options:

  1. Use the StofDoctrineExtensionsBundle, which integrates the above library.
  2. Implement this services directly by following the documentation for integration with Symfony: Install Gedmo Doctrine2 extensions in Symfony2
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务