Yannick Warnier 76a0eae5ea Add static resources and remove tests dir for beta release | 5 tahun lalu | |
---|---|---|
.. | ||
doc | 5 tahun lalu | |
example | 5 tahun lalu | |
lib | 5 tahun lalu | |
schemas | 5 tahun lalu | |
.gitattributes | 5 tahun lalu | |
.gitignore | 5 tahun lalu | |
.travis.yml | 5 tahun lalu | |
CHANGELOG.md | 5 tahun lalu | |
CONTRIBUTING.md | 5 tahun lalu | |
LICENSE | 5 tahun lalu | |
README.md | 5 tahun lalu | |
composer.json | 5 tahun lalu | |
composer7.json | 5 tahun lalu |
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: