You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to disable the lock, the following error occurs
PHP Fatal error: App\\Models\\MyModel and Quarks\\Laravel\\Locking\\LocksVersion define the same property ($lockEnabled) in the composition of App\\Models\\MyModel. However, the definition differs and is considered incompatible. Class was composed in /var/www/html/app/Models/MyModel.php on line 19
You should not define the protected $lockEnabled = true; property in the trait
and then something like this
if (!isset($this->lockEnabled) || $this->lockEnabled) {
$query->where(static::lockVersionColumnName(), '=', $this->currentLockVersion());
}
When the lockEnabled is not present, or is true, do you stuff, when set to false, skip
The text was updated successfully, but these errors were encountered:
First of all, thanks for the fork!
When I try to disable the lock, the following error occurs
You should not define the
protected $lockEnabled = true;
property in the traitand then something like this
When the
lockEnabled
is not present, or is true, do you stuff, when set tofalse
, skipThe text was updated successfully, but these errors were encountered: