This commit is contained in:
2021-08-10 15:48:33 -04:00
parent a1519752cd
commit 2d4f48f3a9
39 changed files with 864 additions and 0 deletions

16
api/src/Unidad.php Normal file
View File

@ -0,0 +1,16 @@
<?php
namespace Incoviba;
use \Model;
class Unidad extends Model {
public static $_table = 'unidad';
protected $propiedad_unidad;
public function propiedad_unidad() {
if ($this->propiedad_unidad === null) {
$this->propiedad_unidad = $this->has_one(PropiedadUnidad::class, 'unidad')->find_one();
}
return $this->propiedad_unidad;
}
}