We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
versionings
version
versionable_id
versionable_type
updated_at
created_at
I am trying to use this package to apply optimistic locking but I face this problem when I trying to retrieve a model that uses Versionable trait.
Versionable
ModelName::where('id', $value)->select('version_id', 'name')->first();
Note: this model has another column called "version_id" other than the "version" column
Trace:
{ "file": "$PROJECT_NAME/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php", "line": 252, "function": "save", "class": "Illuminate\\Database\\Eloquent\\Model", "type": "->" }, { "file": "$PROJECT_NAME/vendor/laravel-enso/versioning/src/app/Traits/Versionable.php", "line": 94, "function": "save", "class": "Illuminate\\Database\\Eloquent\\Relations\\HasOneOrMany", "type": "->" }, { "file": "$PROJECT_NAME/vendor/laravel-enso/versioning/src/app/Traits/Versionable.php", "line": 22, "function": "startVersioning", "class": "App\\Models\\Listings", "type": "->" }
The text was updated successfully, but these errors were encountered:
Why didn't you use the issue template?
Please recreate the issue an don't forget to fill the package version so we can investigate
Sorry, something went wrong.
No branches or pull requests
I am trying to use this package to apply optimistic locking but I face this problem when I trying to retrieve a model that uses
Versionable
trait.Trace:
The text was updated successfully, but these errors were encountered: