hootlex / laravel-friendships

This package gives Eloquent models the ability to manage their friendships.
MIT License
705 stars 150 forks source link

Firing events #55

Closed davidavz closed 8 years ago

davidavz commented 8 years ago

As discussed in #54

hootlex commented 8 years ago

@davidavz Great job! Thanks!

hootlex commented 8 years ago

@davidavz what's the issue with DatabaseTransactions? When enabled SQL timeouts... :@

davidavz commented 8 years ago

@hootlex Don't know what you mean :confused:

hootlex commented 8 years ago

Within the test file, DatabaseTransactions is commented out.

When I enable it, it throws the following error when running the tests:

SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (SQL: insert into `friendships` (`recipient_id`, `recipient_type`, `status`, `sender_type`, `sender_id`, `updated_at`, `created_at`) values (1147, App\User, 0, App\User, 1146, 2016-09-14 23:22:15, 2016-09-14 23:22:15))