mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-06 16:04:35 -04:00
Fixes for camelcase Invitation names
This commit is contained in:
parent
417562b80d
commit
6650f5404f
@ -12,17 +12,18 @@
|
|||||||
namespace App\Utils\PhantomJS;
|
namespace App\Utils\PhantomJS;
|
||||||
|
|
||||||
use App\Designs\Designer;
|
use App\Designs\Designer;
|
||||||
use App\Services\PdfMaker\Design as PdfDesignModel;
|
|
||||||
use App\Services\PdfMaker\PdfMaker as PdfMakerService;
|
|
||||||
use App\Models\CreditInvitation;
|
use App\Models\CreditInvitation;
|
||||||
use App\Models\Design;
|
use App\Models\Design;
|
||||||
use App\Models\InvoiceInvitation;
|
use App\Models\InvoiceInvitation;
|
||||||
use App\Models\QuoteInvitation;
|
use App\Models\QuoteInvitation;
|
||||||
|
use App\Services\PdfMaker\Design as PdfDesignModel;
|
||||||
use App\Services\PdfMaker\Design as PdfMakerDesign;
|
use App\Services\PdfMaker\Design as PdfMakerDesign;
|
||||||
|
use App\Services\PdfMaker\PdfMaker as PdfMakerService;
|
||||||
use App\Utils\HtmlEngine;
|
use App\Utils\HtmlEngine;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
use Illuminate\Support\Facades\App;
|
use Illuminate\Support\Facades\App;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
class Phantom
|
class Phantom
|
||||||
{
|
{
|
||||||
@ -85,7 +86,7 @@ class Phantom
|
|||||||
|
|
||||||
$key = $entity.'_id';
|
$key = $entity.'_id';
|
||||||
|
|
||||||
$invitation_instance = 'App\Models\\'.ucfirst($entity).'Invitation';
|
$invitation_instance = 'App\Models\\'.Str::camel(ucfirst($entity)).'Invitation';
|
||||||
|
|
||||||
$invitation = $invitation_instance::whereRaw('BINARY `key`= ?', [$invitation_key])->first();
|
$invitation = $invitation_instance::whereRaw('BINARY `key`= ?', [$invitation_key])->first();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user