Mostrar reservas
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
namespace Incoviba\Model;
|
||||
|
||||
use Incoviba\Common\Implement\Exception\EmptyResult;
|
||||
use InvalidArgumentException;
|
||||
use Incoviba\Common\Ideal;
|
||||
use Incoviba\Model\Persona\Datos;
|
||||
@ -27,7 +28,11 @@ class Persona extends Ideal\Model
|
||||
public function datos(): ?Datos
|
||||
{
|
||||
if (!isset($this->datos)) {
|
||||
$this->datos = $this->runFactory('datos');
|
||||
try {
|
||||
$this->datos = $this->runFactory('datos');
|
||||
} catch (EmptyResult) {
|
||||
$this->datos = null;
|
||||
}
|
||||
}
|
||||
return $this->datos;
|
||||
}
|
||||
|
Reference in New Issue
Block a user