-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong type in Fuel_user_model::delete() #544
Comments
Is $user an empty array or is it Fuel_user_model object do you know? It may be that you need to check if $user exists first. You could also try loading the model and accessing it the "classic" way to see if it makes a difference (which it really shouldn't):
|
I think I see the issue. Does that error go away when you replace line 857 in Fuel_users_model to?
|
It's working when I use |
Oh right... for some reason, I thought it was in the record model. This should work as well using
|
Consider this piece of code in a migration file, throwing an error at
$user->delete()
Fatal error: Cannot use object of type Fuel_user_model as array in fuel\modules\fuel\models\Fuel_users_model.php on line 857
https://github.com/daylightstudio/FUEL-CMS/blob/master/fuel/modules/fuel/models/Fuel_users_model.php#L857
Or do I access the model the wrong way?
The text was updated successfully, but these errors were encountered: