hagmann / ht-user-registration-doctrine-orm
一个基于ZfcUser的模块,用于将ORM添加到HtUserRegistration
0.1.2
2015-08-01 06:11 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-18 18:09:46 UTC
README
此模块通过用Doctrine替换Zend DB代码来扩展HtUserRegistration。此模块在功能上类似,并旨在取代hrevert/HtUserRegistrationDoctrineORM。
安装
使用composer要求
composer require api-skeletons/ht-user-registration-doctrine-orm
包含在config/application.config.php中
'modules' => array( ... 'HtUserRegistration', 'HtUserRegistrationDoctrineORM', // include after HtUserRegistration ... ),
配置
您的用户实体必须实现HtUserRegistrationDoctrineORM\Entity\UserInterface
。
将ht-user-registration-doctrine-orm/config/ht-user-registration-doctrine-orm.global.php.dist
复制到您的autoload目录,并将其重命名为ht-user-registration-doctrine-orm.global.php
。
编辑ht-user-registration-doctrine-orm.global.php
以进行配置。动态映射将UserRegistration
实体与您的用户实体连接起来。最重要的是,用您的Doctrine用户实体编辑$userEntity
变量。
在ht-user-registration.global.php
中设置
'registration_entity_class' => 'HtUserRegistrationDoctrineORM\Entity\UserRegistration',
跳过器
包含了一个Skipper模块,以添加到您的实体关系图作为附加的skipper模块。