ZF-Commons / ZfcUserDoctrineORM

Doctrine2 ORM storage adapter for ZfcUser.
BSD 3-Clause "New" or "Revised" License
89 stars 92 forks source link

Fatal error: Call to a member function getEmail() #45

Closed kuter closed 11 years ago

kuter commented 11 years ago

Hi everyone,

i'm trying to setup ZfcUser with DoctrineORM .. i've already installed modules:

Doctrine works fine with Album app from official tutorial .. but i can't run ZfcUser module .. when i'm trying to register/sign in i get this error:

Fatal error: Call to a member function getEmail() on a non-object in /project/vendor/zf-commons/zfc-user/view/zfc-user/user/index.phtml on line 1

EDIT: Solution is to set up db tables correctly, good way is to use this:

$ ./vendor/bin/doctrine-module orm:schema-tool:update --dump-sql

to get proper sql command.

Somebody can help me ? i'm new in ZF2 and Doctrine.