hagmann / ht-user-registration-doctrine-orm
A ZfcUser based module to add ORM to HtUserRegistration
Requires
This package is not auto-updated.
Last update: 2025-04-02 20:30:04 UTC
README
This module extends HtUserRegistration by replacing the Zend DB code with Doctrine. This module is functionally similar and designed to supercede hrevert/HtUserRegistrationDoctrineORM
Install
Require with composer
composer require api-skeletons/ht-user-registration-doctrine-orm
Include in config/application.config.php
'modules' => array( ... 'HtUserRegistration', 'HtUserRegistrationDoctrineORM', // include after HtUserRegistration ... ),
Configure
Your User entity must implement HtUserRegistrationDoctrineORM\Entity\UserInterface
.
Copy ht-user-registration-doctrine-orm/config/ht-user-registration-doctrine-orm.global.php.dist
to your autoload directory and rename to ht-user-registration-doctrine-orm.global.php
.
Edit ht-user-registration-doctrine-orm.global.php
for your configuration. Dynamic mapping
joins the UserRegistration
entity to your User entity. Most important is to edit the
$userEntity
variable with your Doctrine user entity.
In ht-user-registration.global.php
set
'registration_entity_class' => 'HtUserRegistrationDoctrineORM\Entity\UserRegistration',
Skipper
A Skipper module is included to add to your entity relationship diagram as an attached skipper module.