Download the PHP package 51systems/doctrine-extensions-module without Composer
On this page you can find all versions of the php package 51systems/doctrine-extensions-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 51systems/doctrine-extensions-module
More information about 51systems/doctrine-extensions-module
Files in 51systems/doctrine-extensions-module
Package doctrine-extensions-module
Short Description Doctrine2 Extensions
License LGPL-3.0
Homepage https://github.com/51systems/doctrine-extensions
Informations about the package doctrine-extensions-module
doctrine-extensions
Collection of extensions to the doctrine2 ORM
Features:
- Controller Plugins
- EntityManagerProvider (entityManagerProvider) - Returns the orm_default entity manager
- AuthenticatedUserProvider (authenticatedUserProvider) - Gets the currently authenticated user (if any)
- InitFormPlugin (initForm) - Initializes forms that may need the entity manager. Also sets up a doctrine object hydrator.
- DataFixtures
- AddIfNotPresentTrait - Helper trait to make it easy to only add fixture entities if they aren't already present in the database
- Types
- UTCDateTime (
utc_datetime
) type as per Doctrine Cookbook. Be careful when querying from this
- UTCDateTime (
- Gedmo Extensions
- Timestampable
- Extends Timestampable extension to support UTCDateTime (
utc_datetime
).DoctrineExtensions\Gedmo\Timestampable\TimestampableListener
should be used in place ofGedmo\Timestampable\TimestampableListener
in config files
- Hydrators
- Single Column Hydrator
- ORM
- Repositories
- SubclassRepositoryFactory that will return a repo that uses the most defined repo definition in the class hierarchy
- Traits
- UTCTimestampableEntity - Timestampable behaviour using UTCDateTime
- EntityManagerAwareTrait - Provides getters/setters for object to hold and instance of an EntityManager.
- Alias
- A smarter alias to use with the doctrine query builder. Allows building / chaining of multiple aliases for subquries.
Skipper
To get The custom type working in skipper, you need to make a custom configuration file and include the following:
Installation
Install Via composer.
Add DoctrineExtensions
to Modules in application.config.php
Config Setup
Copy doctrine-extensions.global.php.dist to your configuration directory and rename to doctrine-extensions.global.php. Modify as necessary.
Testing
Some of the unit tests depend on test classes from other modules. Use --prefer-source
when installing composer to run them.
All versions of doctrine-extensions-module with dependencies
doctrine/orm Version >=2.4.0
zendframework/zend-modulemanager Version >=2.2
zendframework/zend-authentication Version >=2.2
51systems/zf2-extensions Version ^1.1
gedmo/doctrine-extensions Version >=2.3.6