esserj / rbacuserdoctrineorm Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] joins the zfc-rbac and zfc-user modules together in a doctrine orm module
[Deprecated] joins the zfc-rbac and zfc-user modules together in a doctrine orm module
Hi,
if i add this line in my composer.json
"esserj/rbac-user-doctrine-orm" : "dev-master"
I have this error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: doctrine/doctrine-orm-module[dev-master, 0.7.0].
- Can only install one of: doctrine/doctrine-orm-module[0.7.0, dev-master].
- esserj/rbac-user-doctrine-orm dev-master requires doctrine/doctrine-orm-module 0.7.* -> satisfiable by doctrine/doctrine-orm-module[0.7.0].
- Installation request for esserj/rbac-user-doctrine-orm dev-master -> satisfiable by esserj/rbac-user-doctrine-orm[dev-master].
- Installation request for doctrine/doctrine-orm-module dev-master -> satisfiable by doctrine/doctrine-orm-module[dev-master].
If i add this line
"esserj/zfc-rbac-user-doctrine-orm": "dev-master"
I have this error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package esserj/zfc-rbac-user-doctrine-orm could not be found in any version, there may be a typo in the package name......
Can you help me ? Do i need to wait the update of zfc-rbac-user-doctrine-orm ?
When trying to create / update the schema via DoctrineModule ORM Tool
vendor/bin/doctrine-module orm:schema-tool:update --complete --force
it fails with the following message:
[Doctrine\DBAL\Schema\SchemaException]
The table with name 'mydatabase.user' already exists.
This happens since the User
entity already exists inside the ZfcUser
module.
Since we can't remove it from latter is there a way to "skip" it inside RbacUserDoctrineOrm
or is there a parameter for the tool to achieve this?
BTW: Simply running the schema-full.sql
works like a charm! :)
Hello Jan,
I have three roles in my database:
INSERT INTO `rbac_role` (`role_id`, `parent_role_id`, `role_name`) VALUES
(1, NULL, 'guest'),
(2, 1, 'member'),
(3, 2, 'admin');
As long as parent_role_id
is NULL, evrything is fine. But as soon as at least one parent_role_id
is set, the following error occurs:
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Objects returned by RecursiveIterator::getChildren() must implement RecursiveIterator'
That is because the getChildren()
-method in RbacUserDoctrineOrm\Entity\Role
not always returns an object of type RbacUserDoctrineOrm\Entity\Role
but sometimes a string with the role_name
(I guess for the first element in a inheritance row).
The second thing is that in the ZendDeveloperToolbar
every role occurs twice under Details->Identity Roles Assigned
.
I'm tryin' to use this module but at the first run, I got this message:
Class 'RbacUserDoctrineOrm\Provider\AdjacencyList\Role\DoctrineORM' not found
It seems that hasRole from RbacUserDoctrineOrm\Service\Rbac is never called but the method from ZfcRbac\Service\Rbac is.
Do you have any idea why ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.