Zend Framework 2 - BjyAuthorize Entity was not found. in /vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/ProxyFactory.php on line 177 -


i started project zend framework 2 , set modules zfcuser , bjyauthorize. zfcuser part works correctly when active bjyauthorize error occurs

doctrine\orm\entitynotfoundexception: entity not found. in /vendor/doctrine/orm/lib/doctrine/orm/proxy/proxyfactory.php on line 177 call stack

here config file : - comper.json

{ "name": "zendframework/skeleton-application", "description": "skeleton application zf2", "license": "bsd-3-clause", "keywords": [     "framework",     "zf2" ], "homepage": "http://framework.zend.com/", "require": {     "php": ">=5.3.3",     "zendframework/zendframework": "2.3.*",     "zf-commons/zfc-user": "dev-master",     "zendframework/zftool": "dev-master",     "doctrine/doctrine-orm-module": "0.8.0",     "gedmo/doctrine-extensions": "v2.3.9",     "zendframework/zend-developer-tools": "dev-master",     "zf-commons/zfc-user-doctrine-orm": "dev-master",     "zf-commons/zfc-admin": "dev-master",     "bjyoungblood/bjy-authorize": "1.4.0" } } 

application.config.php

return array( 'modules' => array(     'zenddevelopertools',     'zfcadmin',     'doctrinemodule',     'doctrineormmodule',     'zfcbase',     'zfcuser',     'zfcuserdoctrineorm',     'bjyauthorize',     'application',     'fountain',     'rest', ), 'module_listener_options' => array(     'module_paths' => array(         './module',         './vendor',     ),     'config_glob_paths' => array(         'config/autoload/{,*.}{global,local}.php',     ), ), ); 

bjyauthorize.global.php

  return array(  'bjyauthorize' => array(     'default_role' => 'guest',     'identity_provider' => 'bjyauthorize\provider\identity\zfcuserzenddb',     'role_providers' => array(         'bjyauthorize\provider\role\config' => array(             'guest' => array(),             'user'  => array('children' => array(                 'admin' => array(),             )),         ),         'bjyauthorize\provider\role\zenddb' => array(             'table'                 => 'role',             'identifier_field_name' => 'id',             'role_id_field'         => 'roleid',             'parent_role_field'     => 'parent_id',         ),         'bjyauthorize\provider\role\objectrepositoryprovider' => array(             'role_entity_class' => 'fountain\entity\role',             'object_manager'    => 'doctrine.entitymanager.orm_default',         ),     ),      'resource_providers' => array(         'bjyauthorize\provider\resource\config' => array(             'pants' => array(),         ),     ),     'rule_providers' => array(         'bjyauthorize\provider\rule\config' => array(             'allow' => array(                 array(array('guest', 'user'), 'pants', 'wear')             ),             'deny' => array(                 // ...             ),         ),     ),     'guards' => array(         'bjyauthorize\guard\controller' => array(             array('controller' => 'index', 'action' => 'index', 'roles' => array('guest','user')),             array('controller' => 'index', 'action' => 'stuff', 'roles' => array('user')),             array(                 'controller' => array('index', 'static', 'console'),                 'action' => array('list', 'manage'),                 'roles' => array('guest', 'admin')             ),             array(                 'controller' => array('search', 'administration'),                 'roles' => array('staffer', 'admin')             ),             array('controller' => 'zfcuser', 'roles' => array()),         ),         'bjyauthorize\guard\route' => array(             array('route' => 'zfcuser', 'roles' => array('user')),             array('route' => 'zfcuser/logout', 'roles' => array('user')),             array('route' => 'zfcuser/login', 'roles' => array('guest')),             array('route' => 'zfcuser/register', 'roles' => array('guest')),             // below default index action used zendskeletonapplication             array('route' => 'home', 'roles' => array('guest', 'user')),             array('route' => 'home', 'roles' => array('guest', 'user', 'admin')),              array('route' => 'fountain', 'roles' => array('guest', 'user')),             array('route' => 'fountain/add', 'roles' => array( 'admin')),             array('route' => 'fountain/delete', 'roles' => array('admin')),             array('route' => 'fountain/edit', 'roles' => array('admin')),         ),     ), ), ); 

zfcuserdoctrineorm.global.php

return array( 'doctrine' => array(     'driver' => array(         // overriding zfc-user-doctrine-orm's config         'zfcuser_entity' => array(             'class' => 'doctrine\orm\mapping\driver\annotationdriver',             'paths' => array( __dir__ .'/../../module/fountain/src/fountain/entity'),         ),          'orm_default' => array(             'drivers' => array(                 'fountain\entity' => 'zfcuser_entity',             ),         ),     ), ),  'zfcuser' => array(     // telling zfcuser use our own class     'user_entity_class'       => 'fountain\entity\user',     'enable_default_entities' => false, ), ); 

anyone have idea of origin of problem?


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -