Coder Social home page Coder Social logo

rbacuserdoctrineorm's People

Contributors

acaciovilela avatar esserj avatar runphp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rbacuserdoctrineorm's Issues

Composer.json error

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 ?

Creating / updating schema via Doctrine Module ORM Tool fails

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! :)

role inheritance and ZendDeveloperToolbar

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.