awurth / SlimHelpers

MIT License
4 stars 2 forks source link

user:create #1

Open isaac-perkins opened 5 years ago

isaac-perkins commented 5 years ago

Hey.

I get an error when trying to create a user in your slim boilerplate project that's coming from this project.

Call to a member function users() on null

Command/SentinelCreateUserCommand.php Line 81: $role->users()->attach($user);

I'll have a dig around and see what I can find but thought I'd post here first.

thanks for your tidy works. much appreciated. zak

awurth commented 5 years ago

Apparently the default role was not found in the database. Did you initilalize the database with this command ?

$ php bin/console db

I will add a condition to check if the role was found and display an error if not