Yannick Warnier 76a0eae5ea Add static resources and remove tests dir for beta release | 5 vuotta sitten | |
---|---|---|
.. | ||
doc | 5 vuotta sitten | |
example | 5 vuotta sitten | |
lib | 5 vuotta sitten | |
schemas | 5 vuotta sitten | |
.gitattributes | 5 vuotta sitten | |
.gitignore | 5 vuotta sitten | |
.travis.yml | 5 vuotta sitten | |
CHANGELOG.md | 5 vuotta sitten | |
CONTRIBUTING.md | 5 vuotta sitten | |
LICENSE | 5 vuotta sitten | |
README.md | 5 vuotta sitten | |
composer.json | 5 vuotta sitten | |
composer7.json | 5 vuotta sitten |
This package contains extensions for Doctrine ORM and MongoDB ODM that offer new functionality or tools to use Doctrine more efficiently. These behaviors can be easily attached to the event system of Doctrine and handle the records being flushed in a behavioral way.
All extensions support YAML, Annotation and XML mapping. Additional mapping drivers can be easily implemented using Mapping extension to handle the additional metadata mapping.
Extensions Version | Compatible Doctrine ORM & Common Library |
---|---|
2.4 | 2.5+ |
2.3 | 2.2 - 2.4 |
If you are setting up the Entity Manager without a framework, see the the example to prevent issues like #1310
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:
<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:
pdo-sqlite extension is necessary.
To set up and run the tests, follow these steps:
wget https://getcomposer.org/composer.phar
php composer.phar install
bin/phpunit -c tests
To set up 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 Doctrine extensions!
And especially ones who create and maintain new extensions: