mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on tests
This commit is contained in:
parent
be11054b31
commit
7e1a0634f5
@ -33,8 +33,10 @@ class EntityRequest extends Request {
|
|||||||
$class = Utils::getEntityClass($this->entityType);
|
$class = Utils::getEntityClass($this->entityType);
|
||||||
\Log::info('entity ' . $this->entityType . ' - ' . $publicId);
|
\Log::info('entity ' . $this->entityType . ' - ' . $publicId);
|
||||||
if (method_exists($class, 'withTrashed')) {
|
if (method_exists($class, 'withTrashed')) {
|
||||||
|
\Log::info('has withTrashed')
|
||||||
$this->entity = $class::scope($publicId)->withTrashed()->firstOrFail();
|
$this->entity = $class::scope($publicId)->withTrashed()->firstOrFail();
|
||||||
} else {
|
} else {
|
||||||
|
\Log::info('does not have withTrashed')
|
||||||
$this->entity = $class::scope($publicId)->firstOrFail();
|
$this->entity = $class::scope($publicId)->firstOrFail();
|
||||||
}
|
}
|
||||||
\Log::info($this->entity);
|
\Log::info($this->entity);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user