jhuet / ZfcUserDoctrineMongoODM

Clone of Doctrine2 MongoDB ODM storage adapter for ZfcUser with composer support.
1 stars 1 forks source link

Module (ZfcUserDoctrineODM) could not be initialized #4

Open fturiot opened 10 years ago

fturiot commented 10 years ago

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 commented 10 years ago

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

jhuet commented 10 years ago

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 commented 10 years ago

-----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 https://github.com/jhuet/ZfcUserDoctrineMongoODM/issues/4#issuecomment-34571091.

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 commented 10 years ago

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