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/Propiedad.php Normal file
View File

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