Download the PHP package zf3belcebur/doctrine-orm-resources without Composer
On this page you can find all versions of the php package zf3belcebur/doctrine-orm-resources. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zf3belcebur/doctrine-orm-resources
More information about zf3belcebur/doctrine-orm-resources
Files in zf3belcebur/doctrine-orm-resources
Package doctrine-orm-resources
Short Description DoctrineORM Resources to ZF3
License Apache-2.0
Informations about the package doctrine-orm-resources
zf3belcebur-doctrine-orm-resources
DoctrineORMResources
Integrate different modules and provide new resources for DoctrineORM & ZF3:
- doctrine/doctrine-module
- doctrine/doctrine-orm-module
- creof/doctrine2-spatial
- beberlei/doctrineextensions
- gedmo/doctrine-extensions
See
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
Then add ZF3Belcebur\DoctrineORMResources
to your config/application.config.php
Entity Traits
ZF3\DoctrineORMResources\EntityTrait\Coordinates
- Latitude and Longitude fields
ZF3\DoctrineORMResources\EntityTrait\GedmoEntityTranslatable
- Gedmo locale field
ZF3\DoctrineORMResources\EntityTrait\Timestamp
- modified_at and created_at fields with Gedmo Timestampable
Extend your repository with\ZF3Belcebur\DoctrineORMResources\Repository\BaseEntityRepository
Extends Doctrine\ORM\EntityRepository
with access to use Zend\Http\PhpEnvironment\Request
,Zend\Mvc\I18n\Router\TranslatorAwareTreeRouteStack
,Zend\Router\RouteMatch
and Zend\Router\RouteStackInterface
and use the new method findByQb
Event Post Construct Repository
- If you need to do something after the __construct of the repository then you need to extend your repository
of class
ZF3Belcebur\DoctrineORMResources\Repository\BaseEntityRepository
and implementZF3Belcebur\DoctrineORMResources\Repository\PostConstructInterface
.
How to integrate GedmoSortableListener with your repository
-
Enable Sortable Listener in your config
- Implement
PostConstructInterface
event useZF3Belcebur\DoctrineORMResources\RepositoryTrait\SortableListenerAdapterTrait
in your repository
New method getEntityAlias()
New method getQueryWithGedmoTranslation()
This method apply Gedmo Walkers and Hints to query, get defaultLocale from param or find "locale" on routeMatch params Definition
New method findByQb()
Definition
Examples
Validators
NoObjectExist
allow use multiple fields in validatorUniqueObject
allow use multiple fields in validator
Gedmo Performance Translatable
Walkers
Extends GedmoTranslationWalker
to only do necessary query joins
Custom class_metadata_factory_name ZF3Belcebur\DoctrineORMResources\ORM\Mapping\ClassMetadata
Configuration by default
See module.config.php
All versions of doctrine-orm-resources with dependencies
doctrine/doctrine-module Version 2.*
doctrine/doctrine-orm-module Version 2.*
creof/doctrine2-spatial Version ^1.0
beberlei/doctrineextensions Version ^1.0
gedmo/doctrine-extensions Version 2.*|3.*
zendframework/zend-form Version ^2.0