|
11 лет назад | |
---|---|---|
.. | ||
doc | 11 лет назад | |
example | 11 лет назад | |
lib | 11 лет назад | |
schemas | 11 лет назад | |
tests | 11 лет назад | |
upgrade | 11 лет назад | |
.gitignore | 11 лет назад | |
.travis.yml | 11 лет назад | |
LICENSE | 11 лет назад | |
README.md | 11 лет назад | |
composer.json | 11 лет назад |
Version 2.3.9
Note: Extensions 2.3.x are compatible with ORM and doctrine common library versions from 2.2.x to 2.4.x
2014-01-12
This package contains extensions for Doctrine2 that hook into the facilities of Doctrine and offer new functionality or tools to use Doctrine2 more efficiently. This package contains mostly used behaviors which can be easily attached to your event system of Doctrine2 and handle the records being flushed in the behavioral way. List of extensions:
Currently these extensions support Yaml, Annotation and Xml mapping. Additional mapping drivers can be easily implemented using Mapping extension to handle the additional metadata mapping.
Note: Please note, that xml mapping needs to be in a different namespace, the declared namespace for Doctrine extensions is http://gediminasm.org/schemas/orm/doctrine-extensions-mapping So root node now looks like this:
Note: Use 2.1.x tag in order to use extensions based on Doctrine2.1.x versions. Currently master branch is based on 2.2.x versions and may not work with 2.1.x
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping">
...
</doctrine-mapping>
XML mapping xsd schemas are also versioned and can be used by version suffix:
List of extensions which support ODM
All these extensions can be nested together and mapped in traditional ways - annotations, xml or yaml
You can test these extensions on my blog. All tutorials for basic usage examples are on my blog too. You can also fork or clone this blog from github repository
PHPUnit 3.6 or newer is required. To setup and run tests follow these steps:
wget https://getcomposer.org/composer.phar
php composer.phar install
phpunit -c tests
To setup and run example follow these steps:
wget https://getcomposer.org/composer.phar
php composer.phar install
example/em.php
and configure your database on top of the file./example/bin/console
or php example/bin/console
for console commands./example/bin/console orm:schema-tool:create
to create schemaphp example/run.php
to run exampleThanks to everyone participating in the development of these great Doctrine2 extensions!
And especially ones who create and maintain new extensions: