jhonmike / StartApiZend

My API base
14 stars 12 forks source link

Error while Inserting user! #1

Closed ntuple closed 10 years ago

ntuple commented 10 years ago

I am unable to add of edit the users.

Getting following error, every time :

PHP Catchable fatal error: Argument 1 passed to Zf2User\Entity\User::setRole() must be an instance of Zf2Acl\Entity\Role, string given, called in /var/www/acl/vendor/zendframework/zendframework/library/Zend/Stdlib/Hydrator/ClassMethods.php on line 180 and defined in /var/www/acl/vendor/2ends/zf2-user/src/Zf2User/Entity/User.php on line 356

jhonmike commented 10 years ago

Resolved: https://github.com/jhonmike/Zf2User/commit/034b3a6e233fb9321f1ce37f9e49da0f183fae74

Inúmeros problemas apareceram. mais na medida do possível eu vou arrumar. Obrigado!

Innumerable problems appeared. more as far as possible I will tidy. Thank you!

ntuple commented 10 years ago

Thank you very much.

I have made few changes in your Zf2-User module to add few new features that i needed in my project, like :-

  1. public registration page.
  2. validate username and email address for unique user.

if you want i can provide you with the code.

hope my small contribution can help the module.

On Tue, May 20, 2014 at 7:29 PM, Jhon Mike notifications@github.com wrote:

jhonmike/Zf2User@034b3a6https://github.com/jhonmike/Zf2User/commit/034b3a6e233fb9321f1ce37f9e49da0f183fae74

Inúmeros problemas apareceram. mais na medida do possível eu vou arrumar. Obrigado!

Innumerable problems appeared. more as far as possible I will tidy. Thank you!

— Reply to this email directly or view it on GitHubhttps://github.com/jhonmike/Zf2SkeletonApp/issues/1#issuecomment-43626914 .

Regards Abhinav S. Dangol

+++++++++++++++++++++++ Blog: http://abhinavs-blog.blogspot.com Twitter: http://twitter.com/Ntuple

jhonmike commented 10 years ago

Yes, "git push" please!

acabei fazendo uma versão minha da page de registro, mais mesmo assim mande a sua versão que podemos mesclar caso seja necessario (https://github.com/jhonmike/Zf2User/commit/8cf4eaee5f201921ae4808245d3b672dcfdc957e)