Без опису

Christophe Coevoet db76291251 Fixed typo 14 роки тому
bin 81472b0b3c [tree] root id support, diferent strategy support 14 роки тому
lib db76291251 Fixed typo 14 роки тому
tests 70797f42e5 fixed some typos 14 роки тому
vendor 81472b0b3c [tree] root id support, diferent strategy support 14 роки тому
.gitignore 4be1d04edd [tree] tree type in annotation 14 роки тому
.gitmodules 81edcf7a9e created vendor dir, updated test running config 14 роки тому
LICENSE 81472b0b3c [tree] root id support, diferent strategy support 14 роки тому
README.markdown 81472b0b3c [tree] root id support, diferent strategy support 14 роки тому

README.markdown

Some Doctrine 2 Extensions

This package contains extensions for Doctrine 2 that hook into the facilities of Doctrine and offer new functionality or tools to use Doctrine 2 more efficently. This package contains mostly used behaviors which can be easily attached to your event system of Doctrine 2 and handle the records being flushed in the behavioral way. List of extensions:

  • Tree - this extension automates the tree handling process and adds some tree specific functions on repository.
  • Translatable - gives you a very handy solution for translating records into diferent languages. Easy to setup, easier to use.
  • Sluggable - urlizes your specified fields into single unique slug
  • Timestampable - updates date fields on create, update and even property change.

Currently these extensions support Yaml and Annotation mapping. Additional mapping drivers can be easy implemented using Mapping extension to handle the additional metadata mapping.

Latest updates

2011-02-08

  • Refactored [Tree] to support diferent strategies
  • Refactored [Tree][NestedSet] strategy to support roots
  • Changed the [Tree] repository name, relevant to strategy used
  • Notice: now any tree entity should have class annotation specifying the tree strategy - @gedmo:Tree(type="nested")

ODM MongoDB support

There is a plan to port all extensions for different object manager support and now half of extensions can be used with ODM also.

  • Translatable
  • Sluggable
  • Timestampable

Are allready ported to support ODM MongoDB

All these extensions can be nested together. And most allready use only annotations without interface requirement to not to aggregate the entity itself and has implemented proper caching for metadata.

There is a post introducing to these extensions on doctrine project

You can test these extensions on my blog.

All tutorials for basic usage examples are on my blog also.

Running the tests:

PHPUnit 3.4 or newer is required. To setup and run tests follow these steps:

  • go to the root directory of extensions
  • run: git submodule init
  • run: git submodule update
  • go to tests directory: cd tests
  • run: phpunit
  • optional - you can cp phpunit.dist.xml phpunit.xml for additional modifications
  • optional - run mongodb in background to complete all tests

Thanks for contributions to: