Configure full featured Doctrine2 extensions for your symfony2 project. This post will show you - how to create a simple configuration file to manage extensions with ability to use all features it provides. Interested? then bear with me! and don't be afraid, we're not diving into security component :)
Mapping extension makes it easy to map additional metadata for event listeners. It supports Yaml, Xml and Annotation drivers which will be chosen depending on currently used mapping driver for your domain objects. Mapping extension also provides abstraction layer of EventArgs to make it possible to use single listener for different object managers like ODM and ORM.
Features:
Bellow you will find all annotation descriptions used in these extensions. There will be introduction on usage with examples. For more detailed usage on extensions, refer to their specific documentation.
Sortable behavior will maintain a position field for ordering entities.
Features:
Loggable behavior tracks your record changes and is able to manage versions.
Features:
Timestampable behavior will automate the update of date fields on your Entities or Documents. It works through annotations and can update fields on creation, update or even on specific property value change.
Features:
Tree nested behavior will implement the standard Nested-Set behavior on your Entity. Tree supports different strategies and currently the alternative to nested-set can be closure-table tree. Also this behavior can be nested with other extensions to translate or generated slugs of your tree nodes.
Features:
Smarty3 extension is easy to integrate and with full compatibility of view and layout templates which supports all standard features like modules and view rendering in ajax, json, xml. All helpers with Smarty 3 are working nicely without any intervention.
Features:
Sluggable behavior will build the slug of predefined fields on a given field which should store the slug
Features:
Translatable behavior offers a very handy solution for translating specific record fields in diferent languages. Further more, it loads the translations automatically for a locale currently used, which can be set to Translatable Listener on it`s initialization or later for other cases through the Entity itself
Features:
This article contains a PHP build script and a quick tutorial on how to compile and setup php-5.3.x version into your server
Steps:
This article describes how to connect Doctrine2 with Zend Framework.
Main implementation stuff: