1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Revert "Table locking for public_id integrity"

This commit is contained in:
David Bomba 2016-02-10 12:32:12 +11:00
parent 3b1bfe1013
commit 498d7cbca9
2 changed files with 0 additions and 6 deletions

View File

@ -27,7 +27,6 @@ class EntityModel extends Eloquent
$lastEntity = $className::withTrashed()
->scope(false, $entity->account_id)
->orderBy('public_id', 'DESC')
->lockForUpdate()
->first();
if ($lastEntity) {

View File

@ -66,8 +66,6 @@ class ClientRepository extends BaseRepository
{
$publicId = isset($data['public_id']) ? $data['public_id'] : false;
DB::beginTransaction();
if (!$publicId || $publicId == '-1') {
$client = Client::createNew();
} else {
@ -77,9 +75,6 @@ class ClientRepository extends BaseRepository
$client->fill($data);
$client->save();
DB::commit();
/*
if ( ! isset($data['contact']) && ! isset($data['contacts'])) {
return $client;