Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module (ZfcUserDoctrineODM) could not be initialized #4

Open
fturiot opened this issue Feb 6, 2014 · 4 comments
Open

Module (ZfcUserDoctrineODM) could not be initialized #4

fturiot opened this issue Feb 6, 2014 · 4 comments

Comments

@fturiot
Copy link

fturiot commented Feb 6, 2014

I have this problem : Module (ZfcUserDoctrineODM) could not be initialized
and how i must be configure zendfc for use this .
thanks for all
fred

@fturiot
Copy link
Author

fturiot commented Feb 6, 2014

solve for initialization
database is call but nothing is write
Can i use other user configuration for user document

@jhuet
Copy link
Owner

jhuet commented Feb 9, 2014

Hi @fturiot, not sure what your problem is, i just re-installed a fresh ZF2 Skeleton with this module and the correct configuration to connect to the MongoDB database and i managed to create a user document in it. Are you sure you flushed your document after persisting it ?

Here's what i just did :

$dm = $this->getServiceLocator()->get('doctrine.documentmanager.odm_default');

$jhuet = new Document\User;
$dm->getHydratorFactory()->hydrate($jhuet, [
    'name' => 'Jérémy Huet',
    'login' => 'jhuet',
    'password' => 'toto42',
    'email' => 'test@test.com',
] );
$dm->persist($jhuet);

$dm->flush();

@fturiot
Copy link
Author

fturiot commented Feb 9, 2014

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 09/02/2014 12:08, Jérémy Huet a écrit :

Hi @fturiot https://github.com/fturiot, not sure what your problem
is, i just re-installed a fresh ZF2 Skeleton with this module and the
correct configuration to connect to the MongoDB database and i managed
to created a user document in it. Are you sure you flushed your document
after persisting it ?


Reply to this email directly or view it on GitHub
#4 (comment).

Thanks for you response
I have config problem
I mus be use zfcUser what config in yhis
I search config information.

Thanks for all
(sorry for my english)
fred

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJS95DYAAoJEKtRgd7ayWIJUEkP/33IyqPu7nKq+E3MWSo5Yrsq
+NoUNoV0zjJv1YBlGoXlsHIDUyH7i1f0Y297RLppfpcCjbg5RFFEO71qy0b8/Ips
wC8Tsh0BFq1w4jKIzST2O7h2D047rd6QsGMkT6tXCQy+jC61vUMbzQcdltGJumIH
Y7XIBHTLu9WozxfDA1R8VohtHCwRZrJyBmvqQPHvJa9QXxSgpvkSiDKU0lM7cnAN
R6pDJ0BMCc6ocdHaA7645OHfhRRf/aq7MnOuc3XgJgG321+mC1/yI9125l+e/5/Z
tNazSXwpyNBuwgF4kOBjOwan2hepyzodhGe2/S7e+zsgb935EM1AeqQ5is0AxpUn
3dGDkF6DM1TW8qRKL0bCGGl6J6BDJdiwIwe5XaGFupbk1EyQuEwO7nFxXJ39bH7E
U8+kVkGTijrwdPfIy7pvAsPmfK2wyae4H5tQVeljsxEd1JfQ3g1nRLo1gf7Np+JJ
S+V+WNB0fzubngaUKatwYH46VmAOehP0/QHJkGCIhCx/yFIPJXRdez/g9f+g9k+e
qjztLGYk/4fZgb/B7jbiiIYToRPEKQXdmDPIXQP3f4lGxJZyJB98DOuhpvIeigoV
+8reANJZbGVBBfzlnmrQEQJL/1fhH4BMqew2H9Y5vStVzvLTr9AkXx5qHErpKHzH
R4tknE4wcWJou+uTpDkZ
=DNax
-----END PGP SIGNATURE-----

@fturiot
Copy link
Author

fturiot commented Feb 9, 2014

hi,
yes your example is ok i use with doctrine-odm module, this is not the problem
The problem is with ZfcUser and ZfcUserDoctrineODM, init is ok but not ok for connect and create user in database, when i use doctrine odm and write code for this it's ok for use mongoDb (same of your example)
My problem is configuration between ZfcUser / ZfcUserDoctrineODM , i search example for config
regards
and thanks for all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants