-
Notifications
You must be signed in to change notification settings - Fork 16
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
Trying to access spaces causes an error (preventsAccessingMissingAttributes) #33
Comments
Any movement or workarounds on this? This is breaking on L9 and were now up to L11. |
Addressed in 1.4.0 |
This is still happening on Laravel 9 and dev version 1.4.0. |
OK, I am now able to recreate this, but I am seeing a 'WARNING $user->clickUp()
->teams->first()
->spaces->toArray(); WARNING Undefined property: Spinen\ClickUp\Team::$wasRecentlyCreated in vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php on line 497.
[
[
"id" =><removed>,
"name" => "<removed>",
"color" => null,
"private" => true,
"avatar" => null,
"admin_can_manage" => null,
// ...
] I don't have a L9 app & I don't have time to set one up, but I will get this addressed for L11 tonight & hopefully, it will make it work on L9. Are you seeing a warning or error? |
It's throwing an exception:
|
Any movement on this? |
Fixed spinen#33
I've submitted a PR that adds a property to the Model class. This new property fixes the issue reported in this issue. If you'd like to use this change before it's accepted and released as a new version, you can modify your project's "require": {
"spinen/laravel-clickup": "dev-master#63acad405db1e53d05784bd820d8d9b7ee8cef8f"
} |
Executing the following code in Laravel 10 app produces an error:
Undefined property: Spinen\ClickUp\Team::$wasRecentlyCreated
I believe the reason to be is updates in Laravel 9.x - see files Model.php and HasAttributes.php
The text was updated successfully, but these errors were encountered: